Struct fbxcel_dom::v7400::data::mesh::layer::LayerHandle
source · pub struct LayerHandle<'a> { /* private fields */ }
Expand description
Layer node.
Implementations§
source§impl<'a> LayerHandle<'a>
impl<'a> LayerHandle<'a>
sourcepub fn get_index(&self) -> Result<LayerIndex, Error>
pub fn get_index(&self) -> Result<LayerIndex, Error>
Get layer index.
sourcepub fn layer_element_entries(
&self
) -> impl Iterator<Item = LayerElementEntryHandle<'a>>
pub fn layer_element_entries( &self ) -> impl Iterator<Item = LayerElementEntryHandle<'a>>
Returns an iterator of layer element entries.
Methods from Deref<Target = NodeHandle<'a>>§
sourcepub fn attributes(&self) -> &'a [AttributeValue]
pub fn attributes(&self) -> &'a [AttributeValue]
Returns the node attributes.
sourcepub fn children_by_name(&self, name: &str) -> ChildrenByName<'a>
pub fn children_by_name(&self, name: &str) -> ChildrenByName<'a>
Returns an iterator of children with the given name.
sourcepub fn first_child_by_name(&self, name: &str) -> Option<NodeHandle<'a>>
pub fn first_child_by_name(&self, name: &str) -> Option<NodeHandle<'a>>
Returns the first child with the given name.
sourcepub fn strict_eq(&self, other: &NodeHandle<'a>) -> bool
pub fn strict_eq(&self, other: &NodeHandle<'a>) -> bool
Compares nodes strictly.
Returns true
if the two trees are same.
Note that f32
and f64
values are compared bitwise.
Note that this method compares tree data, not internal states of the trees.
sourcepub fn parent(&self) -> Option<NodeHandle<'a>>
pub fn parent(&self) -> Option<NodeHandle<'a>>
Returns parent node handle if available.
sourcepub fn first_child(&self) -> Option<NodeHandle<'a>>
pub fn first_child(&self) -> Option<NodeHandle<'a>>
Returns first child node handle if available.
sourcepub fn last_child(&self) -> Option<NodeHandle<'a>>
pub fn last_child(&self) -> Option<NodeHandle<'a>>
Returns last child node handle if available.
sourcepub fn previous_sibling(&self) -> Option<NodeHandle<'a>>
pub fn previous_sibling(&self) -> Option<NodeHandle<'a>>
Returns previous sibling node handle if available.
sourcepub fn next_sibling(&self) -> Option<NodeHandle<'a>>
pub fn next_sibling(&self) -> Option<NodeHandle<'a>>
Returns next sibling node handle if available.
Trait Implementations§
source§impl<'a> Clone for LayerHandle<'a>
impl<'a> Clone for LayerHandle<'a>
source§fn clone(&self) -> LayerHandle<'a>
fn clone(&self) -> LayerHandle<'a>
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 more