Struct hapi_rs::node::NodeHandle
source · [−]#[repr(transparent)]pub struct NodeHandle(_, _);
Expand description
A handle to a node. Can not be created manually, use HoudiniNode
instead.
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 more
sourceimpl 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
Performs the conversion.
sourceimpl From<HoudiniNode> for NodeHandle
impl From<HoudiniNode> for NodeHandle
sourcefn from(n: HoudiniNode) -> Self
fn from(n: HoudiniNode) -> Self
Performs the conversion.
sourceimpl PartialEq<NodeHandle> for NodeHandle
impl PartialEq<NodeHandle> for NodeHandle
sourcefn eq(&self, other: &NodeHandle) -> bool
fn eq(&self, other: &NodeHandle) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &NodeHandle) -> bool
fn ne(&self, other: &NodeHandle) -> bool
This method tests for !=
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more