pub enum Layout {
GridLayout(GridLayout),
PathLayout(PathLayout),
BoxLayout(BoxLayout),
}
Variants§
Implementations§
Source§impl Layout
impl Layout
pub fn rect(&self) -> &LayoutRect
pub fn rect_mut(&mut self) -> &mut LayoutRect
pub fn geometry(&self) -> Option<&LayoutGeometry>
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<GridLayout> for Layout
impl From<GridLayout> for Layout
Source§fn from(original: GridLayout) -> Layout
fn from(original: GridLayout) -> Layout
Converts to this type from the input type.
Source§impl From<PathLayout> for Layout
impl From<PathLayout> for Layout
Source§fn from(original: PathLayout) -> Layout
fn from(original: PathLayout) -> Layout
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Layout
impl !RefUnwindSafe for Layout
impl !Send for Layout
impl !Sync for Layout
impl Unpin for Layout
impl !UnwindSafe 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
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