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§
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.