pub struct NodeHandle(/* private fields */);
Expand description
A lightweight handle to a node. Can not be created manually, use HoudiniNode
instead.
Some APIs return a list of such handles for efficiency, for example HoudiniNode::find_children_by_type
.
Once you found the node you’re looking for, upgrade it to a “full” node type.
Implementations§
Source§impl NodeHandle
impl NodeHandle
Sourcepub fn info(&self, session: &Session) -> Result<NodeInfo>
pub fn info(&self, session: &Session) -> Result<NodeInfo>
Retrieve info about the node this handle belongs to
Sourcepub fn is_valid(&self, session: &Session) -> Result<bool>
pub fn is_valid(&self, session: &Session) -> Result<bool>
Check if the handle is valid (node wasn’t deleted)
Sourcepub fn to_node(&self, session: &Session) -> Result<HoudiniNode>
pub fn to_node(&self, session: &Session) -> Result<HoudiniNode>
Upgrade the handle to HoudiniNode, which has more capabilities.
Trait Implementations§
Source§impl AsRef<NodeHandle> for HoudiniNode
impl AsRef<NodeHandle> for HoudiniNode
Source§fn as_ref(&self) -> &NodeHandle
fn as_ref(&self) -> &NodeHandle
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<NodeHandle> for NodeHandle
impl AsRef<NodeHandle> for NodeHandle
Source§fn as_ref(&self) -> &NodeHandle
fn as_ref(&self) -> &NodeHandle
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for NodeHandle
impl Clone for NodeHandle
Source§fn clone(&self) -> NodeHandle
fn clone(&self) -> NodeHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NodeHandle
impl Debug for NodeHandle
Source§impl Default for NodeHandle
impl Default for NodeHandle
Source§impl From<&HoudiniNode> for NodeHandle
impl From<&HoudiniNode> for NodeHandle
Source§fn from(n: &HoudiniNode) -> Self
fn from(n: &HoudiniNode) -> Self
Converts to this type from the input type.
Source§impl From<HoudiniNode> for NodeHandle
impl From<HoudiniNode> for NodeHandle
Source§fn from(n: HoudiniNode) -> Self
fn from(n: HoudiniNode) -> Self
Converts to this type from the input type.
Source§impl From<NodeHandle> for HAPI_NodeId
impl From<NodeHandle> for HAPI_NodeId
Source§fn from(h: NodeHandle) -> Self
fn from(h: NodeHandle) -> Self
Converts to this type from the input type.
Source§impl From<TopNode> for NodeHandle
impl From<TopNode> for NodeHandle
Source§impl PartialEq for NodeHandle
impl PartialEq for NodeHandle
impl Copy for NodeHandle
impl Eq for NodeHandle
impl StructuralPartialEq for NodeHandle
Auto Trait Implementations§
impl Freeze for NodeHandle
impl RefUnwindSafe for NodeHandle
impl Send for NodeHandle
impl Sync for NodeHandle
impl Unpin for NodeHandle
impl UnwindSafe for NodeHandle
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