Enum fbxcel_dom::any::AnyDocument
source · [−]#[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
sourceimpl 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 RefUnwindSafe for AnyDocument
impl Send for AnyDocument
impl Sync for AnyDocument
impl Unpin for AnyDocument
impl UnwindSafe for AnyDocument
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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