pub enum ComponentSchemaError {
DuplicateFieldName(&'static str),
FieldOutOfBounds {
name: &'static str,
offset: usize,
size: usize,
max_bytes: usize,
},
FieldOverlap {
left: &'static str,
right: &'static str,
},
}Expand description
Generated component schema validation error.
Variants§
DuplicateFieldName(&'static str)
Field name was repeated.
FieldOutOfBounds
Field range exceeded max_bytes.
Fields
FieldOverlap
Two field byte ranges overlap.
Trait Implementations§
Source§impl Clone for ComponentSchemaError
impl Clone for ComponentSchemaError
Source§fn clone(&self) -> ComponentSchemaError
fn clone(&self) -> ComponentSchemaError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ComponentSchemaError
Source§impl Debug for ComponentSchemaError
impl Debug for ComponentSchemaError
Source§impl Display for ComponentSchemaError
impl Display for ComponentSchemaError
impl Eq for ComponentSchemaError
Source§impl Error for ComponentSchemaError
impl Error for ComponentSchemaError
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 ComponentSchemaError
impl PartialEq for ComponentSchemaError
impl StructuralPartialEq for ComponentSchemaError
Auto Trait Implementations§
impl Freeze for ComponentSchemaError
impl RefUnwindSafe for ComponentSchemaError
impl Send for ComponentSchemaError
impl Sync for ComponentSchemaError
impl Unpin for ComponentSchemaError
impl UnsafeUnpin for ComponentSchemaError
impl UnwindSafe for ComponentSchemaError
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