Struct fbxcel_dom::v7400::data::mesh::layer::uv::LayerElementUvHandle
source · pub struct LayerElementUvHandle<'a> { /* private fields */ }
Expand description
Layer element node handle.
Implementations§
Methods from Deref<Target = LayerElementHandle<'a>>§
sourcepub fn node(&self) -> &NodeHandle<'a>
pub fn node(&self) -> &NodeHandle<'a>
Returns a reference to the node handle.
sourcepub fn typed_index(&self) -> Result<LayerElementIndex, Error>
pub fn typed_index(&self) -> Result<LayerElementIndex, Error>
Returns type-local layer element index.
sourcepub fn name(&self) -> Result<&'a str, Error>
pub fn name(&self) -> Result<&'a str, Error>
Retuns layer element name.
This conflicts with fbxcel::tree::v7400::NodeHandle::name()
.
If you want to get node name, do obj.node().name()
instead of
obj.name()
.
sourcepub fn mapping_mode(&self) -> Result<MappingMode, Error>
pub fn mapping_mode(&self) -> Result<MappingMode, Error>
Returns mapping mode.
sourcepub fn reference_mode(&self) -> Result<ReferenceMode, Error>
pub fn reference_mode(&self) -> Result<ReferenceMode, Error>
Returns reference mode.
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 LayerElementUvHandle<'a>
impl<'a> Clone for LayerElementUvHandle<'a>
source§fn clone(&self) -> LayerElementUvHandle<'a>
fn clone(&self) -> LayerElementUvHandle<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more