#[non_exhaustive]pub enum AnyDocument {
V7400(FbxVersion, Box<Document>),
}
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(FbxVersion, Box<Document>)
FBX 7.4 or later.
Implementations§
Source§impl AnyDocument
impl AnyDocument
Sourcepub fn from_reader(reader: impl Read) -> Result<Self>
pub fn from_reader(reader: impl Read) -> Result<Self>
Loads a document from the given reader.
This works for seekable readers (which implement std::io::Seek
), but
from_seekable_reader
should be used for them, because it is more
efficent.
Sourcepub fn from_seekable_reader(reader: impl Read + Seek) -> Result<Self>
pub fn from_seekable_reader(reader: impl Read + Seek) -> Result<Self>
Loads a document from the given seekable reader.
Sourcepub fn fbx_version(&self) -> FbxVersion
pub fn fbx_version(&self) -> FbxVersion
Returns the FBX version of the loaded document.
Auto Trait Implementations§
impl Freeze for AnyDocument
impl RefUnwindSafe for AnyDocument
impl Send for AnyDocument
impl Sync for AnyDocument
impl Unpin for AnyDocument
impl UnwindSafe for AnyDocument
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