[][src]Struct fbxcel::tree::v7400::Tree

pub struct Tree { /* fields omitted */ }

FBX data tree.

Methods

impl Tree[src]

pub fn root(&self) -> NodeHandle[src]

Returns the root node.

pub fn append_new(&mut self, parent: NodeId, name: &str) -> NodeId[src]

Creates a new node and appends to the given parent node.

Panics

Panics if the given node ID is not used in the tree.

pub fn prepend_new(&mut self, parent: NodeId, name: &str) -> NodeId[src]

Creates a new node and prepends to the given parent node.

Panics

Panics if the given node ID is not used in the tree.

pub fn insert_new_after(&mut self, sibling: NodeId, name: &str) -> NodeId[src]

Creates a new node and inserts after the given sibling node.

Panics

Panics if the given node ID is invalid (i.e. not used or root node).

pub fn insert_new_before(&mut self, sibling: NodeId, name: &str) -> NodeId[src]

Creates a new node and inserts before the given sibling node.

Panics

Panics if the given node ID is invalid (i.e. not used or root node).

pub fn append_attribute(
    &mut self,
    node_id: NodeId,
    v: impl Into<AttributeValue>
)
[src]

Creates a new node and inserts before the given sibling node.

Panics

Panics if the given node ID is invalid (i.e. not used or root node).

pub fn strict_eq(&self, other: &Self) -> bool[src]

Compares trees 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 objects.

pub fn debug_tree<'a>(&'a self) -> impl Debug + 'a[src]

Pretty-print the tree for debugging purpose.

Be careful, this output format may change in future.

Trait Implementations

impl Clone for Tree[src]

impl Default for Tree[src]

impl PartialEq<Tree> for Tree[src]

impl Debug for Tree[src]

impl StructuralPartialEq for Tree[src]

Auto Trait Implementations

impl Send for Tree

impl Sync for Tree

impl Unpin for Tree

impl UnwindSafe for Tree

impl RefUnwindSafe for Tree

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]