pub struct Loader { /* private fields */ }
Available on crate feature
tree
only.Expand description
FBX data tree loader.
Implementations§
Source§impl Loader
impl Loader
Sourcepub fn load<R: Read>(
self,
parser: &mut Parser<R>,
) -> Result<(Tree, Result<Box<FbxFooter>, ParserError>), LoadError>
pub fn load<R: Read>( self, parser: &mut Parser<R>, ) -> Result<(Tree, Result<Box<FbxFooter>, ParserError>), LoadError>
Loads a tree from the given parser, and returns the tree and FBX footer.
The given parser should be brand-new, i.e. it should not have emited any
events.
This can be checked by Parser::is_used()
.
If the given parser is already used, LoadError::BadParser
error will
be returned.
If the tree is successfully read but FBX footer is not,
Ok(tree, Err(parser_error))
is returned.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Loader
impl RefUnwindSafe for Loader
impl Send for Loader
impl Sync for Loader
impl Unpin for Loader
impl UnwindSafe for Loader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more