[−][src]Struct fbxcel::tree::v7400::Tree
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]
&mut self,
node_id: NodeId,
v: impl Into<AttributeValue>
)
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,