pub enum SceneFileError {
TooShort,
InvalidMagicBytes,
}Expand description
An error that can occur when parsing a SceneFile from bytes.
Variants§
TooShort
The byte slice is too short to contain a valid header.
InvalidMagicBytes
The file’s magic bytes do not match HEADER_MAGIC_BYTES.
Trait Implementations§
Source§impl Clone for SceneFileError
impl Clone for SceneFileError
Source§fn clone(&self) -> SceneFileError
fn clone(&self) -> SceneFileError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SceneFileError
impl Debug for SceneFileError
Source§impl PartialEq for SceneFileError
impl PartialEq for SceneFileError
impl Copy for SceneFileError
impl Eq for SceneFileError
impl StructuralPartialEq for SceneFileError
Auto Trait Implementations§
impl Freeze for SceneFileError
impl RefUnwindSafe for SceneFileError
impl Send for SceneFileError
impl Sync for SceneFileError
impl Unpin for SceneFileError
impl UnwindSafe for SceneFileError
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