pub struct Node { /* private fields */ }
Expand description
The bounds of an element and its children.
Implementations§
source§impl Node
impl Node
sourcepub const fn with_children(size: Size, children: Vec<Node>) -> Self
pub const fn with_children(size: Size, children: Vec<Node>) -> Self
sourcepub fn align(
self,
horizontal_alignment: Alignment,
vertical_alignment: Alignment,
space: Size
) -> Self
pub fn align( self, horizontal_alignment: Alignment, vertical_alignment: Alignment, space: Size ) -> Self
Aligns the Node
in the given space.
sourcepub fn align_mut(
&mut self,
horizontal_alignment: Alignment,
vertical_alignment: Alignment,
space: Size
)
pub fn align_mut( &mut self, horizontal_alignment: Alignment, vertical_alignment: Alignment, space: Size )
Mutable reference version of Self::align
.
sourcepub fn move_to_mut(&mut self, position: impl Into<Point>)
pub fn move_to_mut(&mut self, position: impl Into<Point>)
Mutable reference version of Self::move_to
.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
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