pub struct GridAutoRepeat {
pub fit: bool,
pub start: u16,
pub len: u16,
}Expand description
vue-native fork: CSS repeat(auto-fill | auto-fit, <tracks>) inside a
track list — as many repetitions as fit the container, which taffy counts
at layout time. The repeated tracks are a run of the track list it belongs
to (Style::vn_grid_cols / Style::vn_grid_rows); CSS allows one such
repetition per list, and every other track in that list must then have a
fixed size, which the caller checks.
Fields§
§fit: boolauto-fit (the empty repetitions collapse) rather than auto-fill
(they keep their size).
start: u16The index in the track list of the first repeated track.
len: u16How many tracks of the list one repetition holds.
Trait Implementations§
Source§impl Clone for GridAutoRepeat
impl Clone for GridAutoRepeat
impl Copy for GridAutoRepeat
Source§impl Debug for GridAutoRepeat
impl Debug for GridAutoRepeat
Source§impl<'de> Deserialize<'de> for GridAutoRepeat
impl<'de> Deserialize<'de> for GridAutoRepeat
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GridAutoRepeat
Source§impl PartialEq for GridAutoRepeat
impl PartialEq for GridAutoRepeat
Source§impl Serialize for GridAutoRepeat
impl Serialize for GridAutoRepeat
impl StructuralPartialEq for GridAutoRepeat
Auto Trait Implementations§
impl Forget for GridAutoRepeat
impl Freeze for GridAutoRepeat
impl Move for GridAutoRepeat
impl RefUnwindSafe for GridAutoRepeat
impl Send for GridAutoRepeat
impl Sync for GridAutoRepeat
impl Unpin for GridAutoRepeat
impl UnsafeUnpin for GridAutoRepeat
impl UnwindSafe for GridAutoRepeat
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,
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§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> ErasedDestructor for Twhere
T: 'static,
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<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