Struct fbxcel_dom::v7400::data::mesh::layer::LayerElementEntryHandle
source · [−]pub struct LayerElementEntryHandle<'a> { /* private fields */ }
Expand description
Layer element entry node.
The nodes may be children of a Layer
element.
They have simple metadata but not layer element content itself.
Implementations
sourceimpl<'a> LayerElementEntryHandle<'a>
impl<'a> LayerElementEntryHandle<'a>
sourcepub fn type_(&self) -> Result<LayerElementType, Error>
pub fn type_(&self) -> Result<LayerElementType, Error>
Returns layer element type.
sourcepub fn typed_index(&self) -> Result<LayerElementIndex, Error>
pub fn typed_index(&self) -> Result<LayerElementIndex, Error>
Returns the layer element index in the same type.
sourcepub fn typed_layer_element(&self) -> Result<TypedLayerElementHandle<'a>, Error>
pub fn typed_layer_element(&self) -> Result<TypedLayerElementHandle<'a>, Error>
Returns typed layer element handle.
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
sourceimpl<'a> Clone for LayerElementEntryHandle<'a>
impl<'a> Clone for LayerElementEntryHandle<'a>
sourcefn clone(&self) -> LayerElementEntryHandle<'a>
fn clone(&self) -> LayerElementEntryHandle<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for LayerElementEntryHandle<'a>
impl<'a> Debug for LayerElementEntryHandle<'a>
sourceimpl<'a> Deref for LayerElementEntryHandle<'a>
impl<'a> Deref for LayerElementEntryHandle<'a>
type Target = NodeHandle<'a>
type Target = NodeHandle<'a>
The resulting type after dereferencing.
impl<'a> Copy for LayerElementEntryHandle<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for LayerElementEntryHandle<'a>
impl<'a> Send for LayerElementEntryHandle<'a>
impl<'a> Sync for LayerElementEntryHandle<'a>
impl<'a> Unpin for LayerElementEntryHandle<'a>
impl<'a> UnwindSafe for LayerElementEntryHandle<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more