pub struct SiPrefix {
pub power: i8,
pub base: Base,
}
Expand description
Represents the SI prefix.
Fields§
§power: i8
The absolute value of the power of the si prefix.
base: Base
The base of the si prefix.
Trait Implementations§
source§impl<'de> Deserialize<'de> for SiPrefix
impl<'de> Deserialize<'de> for SiPrefix
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SiPrefix, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SiPrefix, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl MulAssign<&SiPrefix> for IcuRatio
impl MulAssign<&SiPrefix> for IcuRatio
source§fn mul_assign(&mut self, rhs: &SiPrefix)
fn mul_assign(&mut self, rhs: &SiPrefix)
Performs the
*=
operation. Read moresource§impl Ord for SiPrefix
impl Ord for SiPrefix
source§impl PartialOrd for SiPrefix
impl PartialOrd for SiPrefix
source§impl Serialize for SiPrefix
impl Serialize for SiPrefix
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl<'a> ZeroMapKV<'a> for SiPrefix
impl<'a> ZeroMapKV<'a> for SiPrefix
impl Copy for SiPrefix
impl Eq for SiPrefix
impl StructuralPartialEq for SiPrefix
Auto Trait Implementations§
impl Freeze for SiPrefix
impl RefUnwindSafe for SiPrefix
impl Send for SiPrefix
impl Sync for SiPrefix
impl Unpin for SiPrefix
impl UnwindSafe for SiPrefix
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more