#[repr(transparent)]pub struct Rems(pub f32);Expand description
A length in rems: multiples of a root font size (16 points in style
strings, REM_SIZE).
Tuple Fields§
§0: f32Implementations§
Trait Implementations§
Source§impl AddAssign for Rems
impl AddAssign for Rems
Source§fn add_assign(&mut self, rhs: Rems)
fn add_assign(&mut self, rhs: Rems)
Performs the
+= operation. Read moreimpl Copy for Rems
Source§impl<'de> Deserialize<'de> for Rems
impl<'de> Deserialize<'de> for Rems
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Rems, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Rems, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl DivAssign<f32> for Rems
impl DivAssign<f32> for Rems
Source§fn div_assign(&mut self, rhs: f32)
fn div_assign(&mut self, rhs: f32)
Performs the
/= operation. Read moreimpl Eq for Rems
Source§impl From<Rems> for AbsoluteLength
impl From<Rems> for AbsoluteLength
Source§fn from(r: Rems) -> AbsoluteLength
fn from(r: Rems) -> AbsoluteLength
Converts to this type from the input type.
Source§impl From<Rems> for DefiniteLength
impl From<Rems> for DefiniteLength
Source§fn from(r: Rems) -> DefiniteLength
fn from(r: Rems) -> DefiniteLength
Converts to this type from the input type.
Source§impl IntoReactive<AbsoluteLength> for Rems
impl IntoReactive<AbsoluteLength> for Rems
Source§fn into_reactive(self) -> Reactive<AbsoluteLength>
fn into_reactive(self) -> Reactive<AbsoluteLength>
As a
Reactive.Source§impl IntoReactive<DefiniteLength> for Rems
impl IntoReactive<DefiniteLength> for Rems
Source§fn into_reactive(self) -> Reactive<DefiniteLength>
fn into_reactive(self) -> Reactive<DefiniteLength>
As a
Reactive.Source§impl IntoReactive<Length> for Rems
impl IntoReactive<Length> for Rems
Source§impl IntoReactive<LineHeight> for Rems
impl IntoReactive<LineHeight> for Rems
Source§fn into_reactive(self) -> Reactive<LineHeight>
fn into_reactive(self) -> Reactive<LineHeight>
As a
Reactive.Source§impl MulAssign<f32> for Rems
impl MulAssign<f32> for Rems
Source§fn mul_assign(&mut self, rhs: f32)
fn mul_assign(&mut self, rhs: f32)
Performs the
*= operation. Read moreSource§impl PartialOrd for Rems
impl PartialOrd for Rems
Source§impl Serialize for Rems
impl Serialize for Rems
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
impl StructuralPartialEq for Rems
Source§impl SubAssign for Rems
impl SubAssign for Rems
Source§fn sub_assign(&mut self, rhs: Rems)
fn sub_assign(&mut self, rhs: Rems)
Performs the
-= operation. Read moreAuto Trait Implementations§
impl Freeze for Rems
impl RefUnwindSafe for Rems
impl Send for Rems
impl Sync for Rems
impl Unpin for Rems
impl UnsafeUnpin for Rems
impl UnwindSafe for Rems
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T, Rhs, Output> GroupOps<Rhs, Output> for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<E> IntoThrown for Ewhere
E: Display,
impl<E> IntoThrown for Ewhere
E: Display,
Source§fn into_thrown(self) -> Thrown
fn into_thrown(self) -> Thrown
The exception.