Struct hapi_rs::node::NodeHandle
source · #[repr(transparent)]pub struct NodeHandle(_, _);
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
sourceimpl 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
sourceimpl Clone for NodeHandle
impl Clone for NodeHandle
sourcefn clone(&self) -> NodeHandle
fn clone(&self) -> NodeHandle
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for NodeHandle
impl Debug for NodeHandle
sourceimpl From<&HoudiniNode> for NodeHandle
impl From<&HoudiniNode> for NodeHandle
sourcefn from(n: &HoudiniNode) -> Self
fn from(n: &HoudiniNode) -> Self
Converts to this type from the input type.
sourceimpl From<HoudiniNode> for NodeHandle
impl From<HoudiniNode> for NodeHandle
sourcefn from(n: HoudiniNode) -> Self
fn from(n: HoudiniNode) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<NodeHandle> for NodeHandle
impl PartialEq<NodeHandle> for NodeHandle
sourcefn eq(&self, other: &NodeHandle) -> bool
fn eq(&self, other: &NodeHandle) -> bool
impl Copy for NodeHandle
impl Eq for NodeHandle
impl StructuralEq for NodeHandle
impl StructuralPartialEq for NodeHandle
Auto Trait Implementations
impl RefUnwindSafe for NodeHandle
impl Send for NodeHandle
impl Sync for NodeHandle
impl Unpin for NodeHandle
impl UnwindSafe for NodeHandle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more