Struct usd::pxr::sdf::LayerHandle
source · #[repr(C)]pub struct LayerHandle { /* private fields */ }
Expand description
A scene description container that can combine with other such containers to form simple component assets, and successively larger aggregates. The contents of an SdfLayer adhere to the SdfData data model. A layer can be ephemeral, or be an asset accessed and serialized through the ArAsset and ArResolver interfaces.
Implementations§
source§impl LayerHandle
impl LayerHandle
sourcepub fn insert_sub_layer_path(
&mut self,
path: &str,
index: Option<usize>
) -> NoResult
pub fn insert_sub_layer_path( &mut self, path: &str, index: Option<usize> ) -> NoResult
Inserts new sublayer path at the given index.
The default index of -1 means to insert at the end.
sourcepub fn remove_sub_layer_path(&mut self, index: usize)
pub fn remove_sub_layer_path(&mut self, index: usize)
Removes sublayer path at the given index.
sourcepub fn save(&self, force: Option<bool>) -> bool
pub fn save(&self, force: Option<bool>) -> bool
Returns true
if successful, false
if an error occurred.
Returns false
if the layer has no remembered file name or the
layer type cannot be saved. The layer will not be overwritten if the
file exists and the layer is not dirty unless force is true.
Trait Implementations§
source§impl Clone for LayerHandle
impl Clone for LayerHandle
source§impl Default for LayerHandle
impl Default for LayerHandle
Auto Trait Implementations§
impl RefUnwindSafe for LayerHandle
impl Send for LayerHandle
impl Sync for LayerHandle
impl Unpin for LayerHandle
impl UnwindSafe for LayerHandle
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