pub enum EncodeSurfaceError {
NoProgram,
BadName {
program: String,
},
NotALeaf,
SameEntry,
TooLarge,
}Expand description
Why a list of paint entries could not be encoded.
Variants§
NoProgram
An entry names no program: it was read from chunk version 1.
BadName
A program name breaks the rules of a program name.
NotALeaf
An entry names a node the scene does not have, or one that is not a leaf.
SameEntry
Two entries have the same program, 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 EncodeSurfaceErrorwhere
RawVecInner: Send,
impl Sync for EncodeSurfaceErrorwhere
RawVecInner: Sync,
impl Unpin for EncodeSurfaceError
impl UnsafeUnpin for EncodeSurfaceError
impl UnwindSafe for EncodeSurfaceErrorwhere
RawVecInner: UnwindSafe,
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