Skip to main content

HavokTree

Trait HavokTree 

Source
pub trait HavokTree {
    type Error;

    // Required methods
    fn tree_for_bytes(&mut self) -> Result<String, Self::Error>;
    fn unreferenced_indexes(&self) -> Result<Vec<usize>, Self::Error>;
}
Expand description

Trait to create ptr dependencies tree

Required Associated Types§

Required Methods§

Source

fn tree_for_bytes(&mut self) -> Result<String, Self::Error>

Tree of the order in which to serialize as binary data.

§Errors

If hkRootLevelContainer is missing.

Source

fn unreferenced_indexes(&self) -> Result<Vec<usize>, Self::Error>

Returns class indexes that are not reachable from hkRootLevelContainer.

These classes are not referenced by any dependency pointer and can be safely removed before serialization if they are not required externally.

§Errors

If hkRootLevelContainer is missing.

Implementations on Foreign Types§

Source§

impl<V> HavokTree for IndexMap<usize, V>
where V: HavokClass,

Implementors§