pub enum AbsoluteLength {
Points(Points),
Rems(Rems),
}Expand description
A length known without layout: points, or rems of a root font size.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for AbsoluteLength
impl Clone for AbsoluteLength
Source§fn clone(&self) -> AbsoluteLength
fn clone(&self) -> AbsoluteLength
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AbsoluteLength
Source§impl Debug for AbsoluteLength
impl Debug for AbsoluteLength
Source§impl Default for AbsoluteLength
impl Default for AbsoluteLength
Source§fn default() -> AbsoluteLength
fn default() -> AbsoluteLength
Returns the “default value” for a type. Read more
impl Eq for AbsoluteLength
Source§impl From<AbsoluteLength> for DefiniteLength
impl From<AbsoluteLength> for DefiniteLength
Source§fn from(a: AbsoluteLength) -> DefiniteLength
fn from(a: AbsoluteLength) -> DefiniteLength
Converts to this type from the input type.
Source§impl From<AbsoluteLength> for Length
impl From<AbsoluteLength> for Length
Source§fn from(a: AbsoluteLength) -> Length
fn from(a: AbsoluteLength) -> Length
Converts to this type from the input type.
Source§impl From<Points> for AbsoluteLength
impl From<Points> for AbsoluteLength
Source§fn from(p: Points) -> AbsoluteLength
fn from(p: Points) -> AbsoluteLength
Converts to this type from the input type.
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 Hash for AbsoluteLength
impl Hash for AbsoluteLength
Source§impl IntoReactive<AbsoluteLength> for Points
impl IntoReactive<AbsoluteLength> for Points
Source§fn into_reactive(self) -> Reactive<AbsoluteLength>
fn into_reactive(self) -> Reactive<AbsoluteLength>
As a
Reactive.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<AbsoluteLength> for AbsoluteLength
impl IntoReactive<AbsoluteLength> for AbsoluteLength
Source§fn into_reactive(self) -> Reactive<AbsoluteLength>
fn into_reactive(self) -> Reactive<AbsoluteLength>
As a
Reactive.Source§impl IntoReactive<DefiniteLength> for AbsoluteLength
impl IntoReactive<DefiniteLength> for AbsoluteLength
Source§fn into_reactive(self) -> Reactive<DefiniteLength>
fn into_reactive(self) -> Reactive<DefiniteLength>
As a
Reactive.Source§impl IntoReactive<Length> for AbsoluteLength
impl IntoReactive<Length> for AbsoluteLength
Source§impl IntoReactive<LineHeight> for AbsoluteLength
impl IntoReactive<LineHeight> for AbsoluteLength
Source§fn into_reactive(self) -> Reactive<LineHeight>
fn into_reactive(self) -> Reactive<LineHeight>
As a
Reactive.Source§impl PartialEq for AbsoluteLength
impl PartialEq for AbsoluteLength
impl StructuralPartialEq for AbsoluteLength
Auto Trait Implementations§
impl Freeze for AbsoluteLength
impl RefUnwindSafe for AbsoluteLength
impl Send for AbsoluteLength
impl Sync for AbsoluteLength
impl Unpin for AbsoluteLength
impl UnsafeUnpin for AbsoluteLength
impl UnwindSafe for AbsoluteLength
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,
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.