pub struct LengthContext {
pub viewport_width: f32,
pub viewport_height: f32,
pub parent_size: f32,
pub font_size: f32,
pub root_font_size: f32,
}Fields§
§viewport_width: f32§viewport_height: f32§parent_size: f32§font_size: f32§root_font_size: f32Trait Implementations§
Source§impl Clone for LengthContext
impl Clone for LengthContext
Source§fn clone(&self) -> LengthContext
fn clone(&self) -> LengthContext
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 LengthContext
Source§impl Debug for LengthContext
impl Debug for LengthContext
Auto Trait Implementations§
impl Freeze for LengthContext
impl RefUnwindSafe for LengthContext
impl Send for LengthContext
impl Sync for LengthContext
impl Unpin for LengthContext
impl UnsafeUnpin for LengthContext
impl UnwindSafe for LengthContext
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§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