pub struct Parser { /* private fields */ }Expand description
Parser for M3 model files
The Parser reads binary M3 files and converts them into the Model structure. It supports multiple parsing modes for error handling.
Uses the PImpl (Pointer to Implementation) idiom to hide implementation details.
Implementations§
Source§impl Parser
impl Parser
Sourcepub fn parse_file(&mut self, file_path: &str) -> Option<Model>
pub fn parse_file(&mut self, file_path: &str) -> Option<Model>
Parse an M3 file from disk @param filePath Path to the M3 file @return Parsed M3 model data @throws std::runtime_error If file cannot be opened or parsing fails in strict mode
Sourcepub fn parse(&mut self, buffer: &[u8]) -> Option<Model>
pub fn parse(&mut self, buffer: &[u8]) -> Option<Model>
Parse an M3 file from memory buffer @param buffer Memory buffer containing M3 data @return Parsed M3 model data @throws std::runtime_error If parsing fails in strict mode
Sourcepub fn has_issues(&self) -> bool
pub fn has_issues(&self) -> bool
Check if parsing encountered any issues @return True if there were warnings or recoverable errors
Trait Implementations§
impl Send for Parser
Auto Trait Implementations§
impl !Sync for Parser
impl Freeze for Parser
impl RefUnwindSafe for Parser
impl Unpin for Parser
impl UnsafeUnpin for Parser
impl UnwindSafe for Parser
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