#[non_exhaustive]pub enum TypedObjectHandle<'a> {
Deformer(TypedDeformerHandle<'a>),
Geometry(TypedGeometryHandle<'a>),
Material(MaterialHandle<'a>),
Model(TypedModelHandle<'a>),
NodeAttribute(TypedNodeAttributeHandle<'a>),
SubDeformer(TypedSubDeformerHandle<'a>),
Texture(TextureHandle<'a>),
Video(TypedVideoHandle<'a>),
Unknown(ObjectHandle<'a>),
}Expand description
Typed object handle.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Deformer(TypedDeformerHandle<'a>)
Deformer.
Geometry(TypedGeometryHandle<'a>)
Geometry.
Material(MaterialHandle<'a>)
Material.
Model(TypedModelHandle<'a>)
Model.
NodeAttribute(TypedNodeAttributeHandle<'a>)
NodeAttribute.
SubDeformer(TypedSubDeformerHandle<'a>)
SubDeformer.
Texture(TextureHandle<'a>)
Texture.
Video(TypedVideoHandle<'a>)
Model.
Unknown(ObjectHandle<'a>)
Unknown.
Methods from Deref<Target = ObjectHandle<'a>>§
Sourcepub fn object_node_id(&self) -> ObjectNodeId
pub fn object_node_id(&self) -> ObjectNodeId
Returns object node ID.
Sourcepub fn node(&self) -> NodeHandle<'a>
pub fn node(&self) -> NodeHandle<'a>
Returns the node handle.
Sourcepub fn get_typed(&self) -> TypedObjectHandle<'a>
pub fn get_typed(&self) -> TypedObjectHandle<'a>
Returns the object type.
Sourcepub fn destination_objects(
&self,
) -> impl Iterator<Item = ConnectedObjectHandle<'a>>
pub fn destination_objects( &self, ) -> impl Iterator<Item = ConnectedObjectHandle<'a>>
Returns an iterator of destination objects and connection labels.
Sourcepub fn source_objects(&self) -> impl Iterator<Item = ConnectedObjectHandle<'a>>
pub fn source_objects(&self) -> impl Iterator<Item = ConnectedObjectHandle<'a>>
Returns an iterator of source objects and connection labels.
Sourcepub fn direct_properties(&self) -> Option<PropertiesHandle<'a>>
pub fn direct_properties(&self) -> Option<PropertiesHandle<'a>>
Returns a handle of the directly associated properties node.
Sourcepub fn properties_by_native_typename(
&self,
native_typename: &str,
) -> ObjectProperties<'a>
pub fn properties_by_native_typename( &self, native_typename: &str, ) -> ObjectProperties<'a>
Returns a proxy to object properties using the given native typename.
native_typename should be the value of the first attribute of
the PropertyTemplate node to be used.
Trait Implementations§
Source§impl<'a> Clone for TypedObjectHandle<'a>
impl<'a> Clone for TypedObjectHandle<'a>
Source§fn clone(&self) -> TypedObjectHandle<'a>
fn clone(&self) -> TypedObjectHandle<'a>
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<'a> Debug for TypedObjectHandle<'a>
impl<'a> Debug for TypedObjectHandle<'a>
Source§impl<'a> Deref for TypedObjectHandle<'a>
impl<'a> Deref for TypedObjectHandle<'a>
impl<'a> Copy for TypedObjectHandle<'a>
Auto Trait Implementations§
impl<'a> Freeze for TypedObjectHandle<'a>
impl<'a> RefUnwindSafe for TypedObjectHandle<'a>
impl<'a> Send for TypedObjectHandle<'a>
impl<'a> Sync for TypedObjectHandle<'a>
impl<'a> Unpin for TypedObjectHandle<'a>
impl<'a> UnwindSafe for TypedObjectHandle<'a>
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