#[non_exhaustive]
pub enum AnyParser<R> {
V7400(Parser<R>),
}
Expand description
FBX tree type with any supported version.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
V7400(Parser<R>)
FBX 7.4 or later.
Implementations
sourceimpl<R: Read> AnyParser<R>
impl<R: Read> AnyParser<R>
sourcepub fn from_reader(reader: R) -> Result<Self>
pub fn from_reader(reader: R) -> Result<Self>
Loads a tree from the given reader.
This works for seekable readers (which implement std::io::Seek
).
However, from_seekable_reader
method
should be used for them because it is more efficent.
sourcepub fn from_seekable_reader(reader: R) -> Result<Self>where
R: Seek,
pub fn from_seekable_reader(reader: R) -> Result<Self>where
R: Seek,
Loads a tree from the given seekable reader.
sourcepub fn parser_version(&self) -> ParserVersion
pub fn parser_version(&self) -> ParserVersion
Returns the parser version.
sourcepub fn fbx_version(&self) -> FbxVersion
pub fn fbx_version(&self) -> FbxVersion
Returns the FBX version.
Auto Trait Implementations
impl<R> !RefUnwindSafe for AnyParser<R>
impl<R> !Send for AnyParser<R>
impl<R> !Sync for AnyParser<R>
impl<R> Unpin for AnyParser<R>where
R: Unpin,
impl<R> !UnwindSafe for AnyParser<R>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more