[][src]Struct fbxcel_dom::v7400::data::mesh::layer::LayerElementEntryHandle

pub struct LayerElementEntryHandle<'a> { /* fields omitted */ }

Layer element entry node.

The nodes may be children of a Layer element. They have simple metadata but not layer element content itself.

Implementations

impl<'a> LayerElementEntryHandle<'a>[src]

pub fn type_str(&self) -> Result<&'a str, Error>[src]

Returns layer element type string.

pub fn type_(&self) -> Result<LayerElementType, Error>[src]

Returns layer element type.

pub fn typed_index(&self) -> Result<LayerElementIndex, Error>[src]

Returns the layer element index in the same type.

pub fn typed_layer_element(&self) -> Result<TypedLayerElementHandle<'a>, Error>[src]

Returns typed layer element handle.

Methods from Deref<Target = NodeHandle<'a>>

pub fn tree(&self) -> &'a Tree[src]

Returns a reference to the tree.

pub fn node_id(&self) -> NodeId[src]

Returns the node ID.

pub fn name(&self) -> &'a str[src]

Returns the node name.

pub fn attributes(&self) -> &'a [AttributeValue][src]

Returns the node attributes.

pub fn children(&self) -> impl Iterator<Item = NodeHandle<'a>> + 'a[src]

Returns an iterator of children with the given name.

pub fn children_by_name(
    &self,
    name: &str
) -> impl Iterator<Item = NodeHandle<'a>> + 'a
[src]

Returns an iterator of children with the given name.

pub fn strict_eq(&self, other: &NodeHandle<'a>) -> bool[src]

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.

pub fn parent(&self) -> Option<NodeHandle<'a>>[src]

Returns parent node handle if available.

pub fn first_child(&self) -> Option<NodeHandle<'a>>[src]

Returns first child node handle if available.

pub fn last_child(&self) -> Option<NodeHandle<'a>>[src]

Returns last child node handle if available.

pub fn previous_sibling(&self) -> Option<NodeHandle<'a>>[src]

Returns previous sibling node handle if available.

pub fn next_sibling(&self) -> Option<NodeHandle<'a>>[src]

Returns next sibling node handle if available.

Trait Implementations

impl<'a> Clone for LayerElementEntryHandle<'a>[src]

impl<'a> Copy for LayerElementEntryHandle<'a>[src]

impl<'a> Debug for LayerElementEntryHandle<'a>[src]

impl<'a> Deref for LayerElementEntryHandle<'a>[src]

type Target = NodeHandle<'a>

The resulting type after dereferencing.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.