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
.
Sourcepub fn translate(self, translation: impl Into<Vector>) -> Self
pub fn translate(self, translation: impl Into<Vector>) -> Self
Translates the Node
by the given translation.
Sourcepub fn translate_mut(&mut self, translation: impl Into<Vector>)
pub fn translate_mut(&mut self, translation: impl Into<Vector>)
Translates the Node
by the given translation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Node
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.