Enum lay_rs::prelude::taffy::GridTrackRepetition
pub enum GridTrackRepetition {
AutoFill,
AutoFit,
Count(u16),
}
Expand description
The first argument to a repeated track definition. This type represents the type of automatic repetition to perform.
See https://www.w3.org/TR/css-grid-1/#auto-repeat for an explanation of how auto-repeated track definitions work and the difference between AutoFit and AutoFill.
Variants§
AutoFill
Auto-repeating tracks should be generated to fit the container See: https://developer.mozilla.org/en-US/docs/Web/CSS/repeat#auto-fill
AutoFit
Auto-repeating tracks should be generated to fit the container See: https://developer.mozilla.org/en-US/docs/Web/CSS/repeat#auto-fit
Count(u16)
The specified tracks should be repeated exacts N times
Trait Implementations§
§impl Clone for GridTrackRepetition
impl Clone for GridTrackRepetition
§fn clone(&self) -> GridTrackRepetition
fn clone(&self) -> GridTrackRepetition
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for GridTrackRepetition
impl Debug for GridTrackRepetition
§impl<'de> Deserialize<'de> for GridTrackRepetition
impl<'de> Deserialize<'de> for GridTrackRepetition
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GridTrackRepetition, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GridTrackRepetition, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq for GridTrackRepetition
impl PartialEq for GridTrackRepetition
§impl Serialize for GridTrackRepetition
impl Serialize for GridTrackRepetition
§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<'a> TryFrom<&'a str> for GridTrackRepetition
impl<'a> TryFrom<&'a str> for GridTrackRepetition
§impl TryFrom<u16> for GridTrackRepetition
impl TryFrom<u16> for GridTrackRepetition
§type Error = Infallible
type Error = Infallible
The type returned in the event of a conversion error.
§fn try_from(value: u16) -> Result<GridTrackRepetition, Infallible>
fn try_from(value: u16) -> Result<GridTrackRepetition, Infallible>
Performs the conversion.
impl Copy for GridTrackRepetition
impl Eq for GridTrackRepetition
impl StructuralPartialEq for GridTrackRepetition
Auto Trait Implementations§
impl Freeze for GridTrackRepetition
impl RefUnwindSafe for GridTrackRepetition
impl Send for GridTrackRepetition
impl Sync for GridTrackRepetition
impl Unpin for GridTrackRepetition
impl UnwindSafe for GridTrackRepetition
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<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.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