pub struct Object<'a> { /* private fields */ }Expand description
Base class for Usd scenegraph objects, providing common API.
The commonality between the three types of scenegraph objects in Usd
(usd::Prim, usd::Attribute, usd::Relationship) is that they
can all have metadata. Other objects in the API simply are kinds of metadata.
Inheritance hierarchy:
Implementations§
Source§impl<'a> Object<'a>
impl<'a> Object<'a>
pub fn stage(&self) -> &Stage
pub fn path(&self) -> &Path
pub fn metadata<T: ValueType>(&self, key: &Token) -> Option<T>
Sourcepub fn documentation(&self) -> String
pub fn documentation(&self) -> String
Return this object’s documentation (metadata).
This returns the empty string if no documentation has been set.
Sourcepub fn custom_data(&self) -> Dictionary
pub fn custom_data(&self) -> Dictionary
Return this object’s composed customData dictionary.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Object<'a>
impl<'a> !Send for Object<'a>
impl<'a> !Sync for Object<'a>
impl<'a> !UnwindSafe for Object<'a>
impl<'a> Freeze for Object<'a>
impl<'a> Unpin for Object<'a>
impl<'a> UnsafeUnpin for Object<'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