pub struct BoxLayout {
pub orientation: Orientation,
pub elems: Vec<LayoutItem>,
pub geometry: LayoutGeometry,
pub cross_alignment: Option<NamedReference>,
}Expand description
Internal representation of a BoxLayout
Fields§
§orientation: OrientationWhether this is a HorizontalLayout or a VerticalLayout
elems: Vec<LayoutItem>§geometry: LayoutGeometry§cross_alignment: Option<NamedReference>The cross-axis-alignment property, if set.
Implementations§
Source§impl BoxLayout
impl BoxLayout
pub fn visit_named_references( &mut self, visitor: &mut impl FnMut(&mut NamedReference), )
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for BoxLayout
impl !Send for BoxLayout
impl !Sync for BoxLayout
impl !UnwindSafe for BoxLayout
impl Freeze for BoxLayout
impl Unpin for BoxLayout
impl UnsafeUnpin for BoxLayout
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