pub struct BuildCx { /* private fields */ }Implementations§
Source§impl BuildCx
impl BuildCx
pub fn new(parent: RNode) -> Self
pub fn parent(&self) -> RNode
Sourcepub fn leaf(&mut self, kind: PieceKind, props: &dyn Any, flex: Flex) -> RNode
pub fn leaf(&mut self, kind: PieceKind, props: &dyn Any, flex: Flex) -> RNode
Create + attach a native leaf.
Sourcepub fn native(
&mut self,
kind: PieceKind,
props: &dyn Any,
layout: Rc<dyn Layout>,
flex: Flex,
boundary: Boundary,
) -> RNode
pub fn native( &mut self, kind: PieceKind, props: &dyn Any, layout: Rc<dyn Layout>, flex: Flex, boundary: Boundary, ) -> RNode
Create + attach a native node with a custom layout (containers, scroll).
Sourcepub fn layout_only(
&mut self,
layout: Rc<dyn Layout>,
flex: Flex,
boundary: Boundary,
) -> RNode
pub fn layout_only( &mut self, layout: Rc<dyn Layout>, flex: Flex, boundary: Boundary, ) -> RNode
Create + attach a layout-only node (wrappers, groups, spacer).
Auto Trait Implementations§
impl Freeze for BuildCx
impl RefUnwindSafe for BuildCx
impl Send for BuildCx
impl Sync for BuildCx
impl Unpin for BuildCx
impl UnsafeUnpin for BuildCx
impl UnwindSafe for BuildCx
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> 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