pub enum ReadFileError {
Show 16 variants
File(ReadBreadError),
ChunkVersion {
tag: ChunkTag,
version: u16,
},
ChunkCount {
tag: ChunkTag,
count: usize,
},
Mesh(DecodeMeshError),
Scene(DecodeSceneError),
Supports(DecodeDocumentsError),
Hollows(DecodeDocumentsError),
Previews(DecodePreviewsError),
Surface(DecodeSurfaceError),
Roles(DecodeRolesError),
ProgramData(DecodeProgramDataError),
RoleConflict {
leaf: usize,
},
SupportIsHollowed {
leaf: usize,
},
PreviewWithoutSupports {
leaf: usize,
},
Volumes(DecodeVolumesError),
VolumeConflict {
model: usize,
},
}Expand description
Why a .bread file could not be read.
Variants§
File(ReadBreadError)
ChunkVersion
A chunk this build reads has a version it does not read: a newer one, or 0, which no version is.
ChunkCount
The file holds a number of chunks of one tag that the format does not allow: no scene chunk, or two of a chunk that comes at most once.
Mesh(DecodeMeshError)
Scene(DecodeSceneError)
Supports(DecodeDocumentsError)
Hollows(DecodeDocumentsError)
Previews(DecodePreviewsError)
Surface(DecodeSurfaceError)
Roles(DecodeRolesError)
ProgramData(DecodeProgramDataError)
RoleConflict
A role contradicts the supports or hollows: a support leaf given the role of a raft, or a model of either given a role.
SupportIsHollowed
A support leaf is also a hollowed model.
PreviewWithoutSupports
A support preview names a leaf that no supports entry shows.
Volumes(DecodeVolumesError)
VolumeConflict
A volume belongs to a support leaf or a leaf with the role of supports or a raft, or a hollowed model has a negative volume.
Trait Implementations§
Source§impl Debug for ReadFileError
impl Debug for ReadFileError
Source§impl Display for ReadFileError
impl Display for ReadFileError
Source§impl Error for ReadFileError
impl Error for ReadFileError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<ReadBreadError> for ReadFileError
impl From<ReadBreadError> for ReadFileError
Source§fn from(err: ReadBreadError) -> Self
fn from(err: ReadBreadError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ReadFileError
impl !UnwindSafe for ReadFileError
impl Forget for ReadFileError
impl Freeze for ReadFileError
impl Move for ReadFileError
impl Send for ReadFileErrorwhere
Repr: Send,
impl Sync for ReadFileErrorwhere
Repr: Sync,
impl Unpin for ReadFileError
impl UnsafeUnpin for ReadFileError
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