pub struct Prim<'a>(/* private fields */);Expand description
usd::Prim is the sole persistent scenegraph object on a usd::Stage,
and is the embodiment of a “Prim” as described in the Universal Scene Description Composition Compendium.
Implementations§
Methods from Deref<Target = 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.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Prim<'a>
impl<'a> !Send for Prim<'a>
impl<'a> !Sync for Prim<'a>
impl<'a> !UnwindSafe for Prim<'a>
impl<'a> Freeze for Prim<'a>
impl<'a> Unpin for Prim<'a>
impl<'a> UnsafeUnpin for Prim<'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