pub struct Document { /* private fields */ }Implementations§
Source§impl Document
impl Document
pub fn version(&self) -> u32
pub fn creator(&self) -> &str
pub fn creation_date(&self) -> &[u32; 7]
pub fn global_settings(&self) -> GlobalSettings<'_>
pub fn objects(&self) -> Objects<'_> ⓘ
pub fn object_by_index(&self, index: u64) -> Option<Object<'_>>
pub fn from_parser<R>(
parser: Parser<R>,
settings: ImportSettings,
) -> Result<Self, DocumentParseError>where
R: BufRead,
Sourcepub fn from_binary_reader<R>(
reader: R,
settings: ImportSettings,
) -> Result<Self, DocumentParseError>
pub fn from_binary_reader<R>( reader: R, settings: ImportSettings, ) -> Result<Self, DocumentParseError>
Loads a binary FBX document through fbxcel’s tree API.
This is the chosen primary binary ingress for now:
- parse bytes into
AnyTree - adapt tree nodes into the existing
Documentfields - drop the
AnyTreeafter materialization so we do not persist both a full tree and a long-lived binary DOM side-by-side.
Trait Implementations§
Source§impl From<Document> for OwnedDocument
impl From<Document> for OwnedDocument
Source§fn from(document: Document) -> Self
fn from(document: Document) -> Self
Classifies every Objects row; header and crate::objects::OwnedGlobalSettings are copied;
connection maps are only preserved per-OwnedObject, not on this struct.
Auto Trait Implementations§
impl Freeze for Document
impl RefUnwindSafe for Document
impl Send for Document
impl Sync for Document
impl Unpin for Document
impl UnsafeUnpin for Document
impl UnwindSafe for Document
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