pub enum Layout {
GridLayout(GridLayout),
BoxLayout(BoxLayout),
FlexboxLayout(FlexboxLayout),
}Variants§
Implementations§
Source§impl Layout
impl Layout
Sourcepub fn visit_named_references(
&mut self,
visitor: &mut impl FnMut(&mut NamedReference),
)
pub fn visit_named_references( &mut self, visitor: &mut impl FnMut(&mut NamedReference), )
Call the visitor for each NamedReference stored in the layout
Trait Implementations§
Source§impl From<FlexboxLayout> for Layout
impl From<FlexboxLayout> for Layout
Source§fn from(value: FlexboxLayout) -> Self
fn from(value: FlexboxLayout) -> Self
Converts to this type from the input type.
Source§impl From<GridLayout> for Layout
impl From<GridLayout> for Layout
Source§fn from(value: GridLayout) -> Self
fn from(value: GridLayout) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Layout
impl !Send for Layout
impl !Sync for Layout
impl !UnwindSafe for Layout
impl Freeze for Layout
impl Unpin for Layout
impl UnsafeUnpin for Layout
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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