Struct hapi_rs::session::NodeBuilder
source · pub struct NodeBuilder<'s> { /* private fields */ }
Expand description
Builder struct for Session::node_builder
API
Implementations§
source§impl<'s> NodeBuilder<'s>
impl<'s> NodeBuilder<'s>
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> !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