pub struct Composition { /* private fields */ }Expand description
The composed tree of a set of flattened nodes.
Implementations§
Source§impl Composition
impl Composition
Sourcepub fn roots(&self) -> &[String]
pub fn roots(&self) -> &[String]
Paths without / that no inherits or children reference names,
in order of first appearance.
Sourcepub fn get(&self, path: &str) -> Option<&Arc<ComposedNode>>
pub fn get(&self, path: &str) -> Option<&Arc<ComposedNode>>
The composed node at path, which is a node path optionally followed
by child names: wall, wall/Body, wall/Body/Mesh.
Sourcepub fn root(&self) -> ComposedNode
pub fn root(&self) -> ComposedNode
An artificial root with path "", no attributes, and every root as
a child named by its path, as upstream’s CreateArtificialRoot.
Trait Implementations§
Source§impl Clone for Composition
impl Clone for Composition
Source§fn clone(&self) -> Composition
fn clone(&self) -> Composition
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for Composition
impl RefUnwindSafe for Composition
impl Send for Composition
impl Sync for Composition
impl Unpin for Composition
impl UnwindSafe for Composition
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