pub struct NodeBuilder<'s> { /* private fields */ }
Expand description
Builder struct for Session::node_builder
API
Implementations§
Source§impl NodeBuilder<'_>
impl NodeBuilder<'_>
Sourcepub fn with_label(self, label: impl Into<String>) -> Self
pub fn with_label(self, label: impl Into<String>) -> Self
Give new node a label
Sourcepub fn with_parent<H: AsRef<NodeHandle>>(self, parent: H) -> Self
pub fn with_parent<H: AsRef<NodeHandle>>(self, parent: H) -> Self
Create new node as child of a parent node.
Sourcepub fn create(self) -> Result<HoudiniNode>
pub fn create(self) -> Result<HoudiniNode>
Consume the builder and create the node
Auto Trait Implementations§
impl<'s> Freeze for NodeBuilder<'s>
impl<'s> !RefUnwindSafe for NodeBuilder<'s>
impl<'s> Send for NodeBuilder<'s>
impl<'s> Sync for NodeBuilder<'s>
impl<'s> Unpin for NodeBuilder<'s>
impl<'s> !UnwindSafe for NodeBuilder<'s>
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