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

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

Layer node.

Methods

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

pub fn get_index(&self) -> Result<LayerIndex, Error>[src]

Get layer index.

pub fn layer_element_entries(
    &self
) -> impl Iterator<Item = LayerElementEntryHandle<'a>>
[src]

Returns an iterator of layer element entries.

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 LayerHandle<'a>[src]

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

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

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

type Target = NodeHandle<'a>

The resulting type after dereferencing.

Auto Trait Implementations

impl<'a> Send for LayerHandle<'a>

impl<'a> Sync for LayerHandle<'a>

impl<'a> Unpin for LayerHandle<'a>

impl<'a> UnwindSafe for LayerHandle<'a>

impl<'a> RefUnwindSafe for LayerHandle<'a>

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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