pub enum EncodeSurfaceError {
NotALeaf,
SameEntry,
TooLarge,
}Expand description
Why a list of paint entries could not be encoded.
Variants§
NotALeaf
An entry names a node the scene does not have, or one that is not a leaf.
SameEntry
Two entries have the same leaf and kind.
TooLarge
There are 2^32 or more entries, or a document of 4 GiB or more.
Trait Implementations§
Source§impl Clone for EncodeSurfaceError
impl Clone for EncodeSurfaceError
Source§impl Debug for EncodeSurfaceError
impl Debug for EncodeSurfaceError
Source§impl Display for EncodeSurfaceError
impl Display for EncodeSurfaceError
impl Eq for EncodeSurfaceError
Source§impl Error for EncodeSurfaceError
impl Error for EncodeSurfaceError
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 PartialEq for EncodeSurfaceError
impl PartialEq for EncodeSurfaceError
impl StructuralPartialEq for EncodeSurfaceError
Auto Trait Implementations§
impl Forget for EncodeSurfaceError
impl Freeze for EncodeSurfaceError
impl Move for EncodeSurfaceError
impl RefUnwindSafe for EncodeSurfaceError
impl Send for EncodeSurfaceError
impl Sync for EncodeSurfaceError
impl Unpin for EncodeSurfaceError
impl UnsafeUnpin for EncodeSurfaceError
impl UnwindSafe for EncodeSurfaceError
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