pub enum ParseError {
Truncated,
WrongMagic,
UnsupportedVersion(u16),
InvalidPayloadLen {
declared: u32,
actual: usize,
},
TableOverflow,
InvalidWorldLayout,
InvalidModelLayout,
InvalidAnimationLayout,
InvalidAudioLayout,
}Expand description
Errors Mesh::from_bytes can return for a malformed blob.
Variants§
Truncated
Blob shorter than the minimum header sizes.
WrongMagic
AssetHeader::magic doesn’t match the expected asset kind.
UnsupportedVersion(u16)
Format version newer than this parser supports.
InvalidPayloadLen
Declared payload_len disagrees with the actual byte length.
Fields
§
declared: u32Payload length declared in the common asset header.
§
actual: usizeActual payload byte count after the common asset header.
TableOverflow
Vertex or face table wouldn’t fit in the remaining payload.
InvalidWorldLayout
World-grid header fields are inconsistent.
InvalidModelLayout
Model header/table fields are inconsistent.
InvalidAnimationLayout
Animation header/table fields are inconsistent.
InvalidAudioLayout
Audio header/table fields are inconsistent.
Trait Implementations§
Source§impl Clone for ParseError
impl Clone for ParseError
Source§fn clone(&self) -> ParseError
fn clone(&self) -> ParseError
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParseError
impl Debug for ParseError
Source§impl PartialEq for ParseError
impl PartialEq for ParseError
impl Copy for ParseError
impl Eq for ParseError
impl StructuralPartialEq for ParseError
Auto Trait Implementations§
impl Freeze for ParseError
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnsafeUnpin for ParseError
impl UnwindSafe for ParseError
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)