[][src]Struct fbxcel_dom::v7400::data::mesh::layer::color::LayerElementColorHandle

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

Layer element node handle.

Implementations

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

pub fn new(node: LayerElementHandle<'a>) -> Self[src]

Creates a new LayerElementColorHandle.

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

Returns Color data.

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

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

Returns a reference to the node handle.

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

Returns type-local layer element index.

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

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().

pub fn mapping_mode(&self) -> Result<MappingMode, Error>[src]

Returns mapping mode.

pub fn reference_mode(&self) -> Result<ReferenceMode, Error>[src]

Returns reference mode.

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

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

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

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

type Target = LayerElementHandle<'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.