pub struct Track { /* private fields */ }Implementations§
Source§impl Track
impl Track
Sourcepub const CONTENT: Track
pub const CONTENT: Track
As wide as its content (the widest cell of the column in a grid), as measured on the previous pass.
Sourcepub fn fr(weight: f32) -> Self
pub fn fr(weight: f32) -> Self
A weight of what the other tracks and the gaps leave: two fr(1.0)
share it equally.
Sourcepub fn em(n: f32) -> Self
pub fn em(n: f32) -> Self
n lines of body text (Length::Em).
Sourcepub fn percent(p: f32) -> Self
pub fn percent(p: f32) -> Self
A share of the container’s width (Length::Percent).
Trait Implementations§
impl Copy for Track
impl StructuralPartialEq for Track
Auto Trait Implementations§
impl Freeze for Track
impl RefUnwindSafe for Track
impl Send for Track
impl Sync for Track
impl Unpin for Track
impl UnsafeUnpin for Track
impl UnwindSafe for Track
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