pub enum SchemaError {
DuplicateComponentId {
id: ComponentId,
},
DuplicateFieldId {
component: ComponentId,
field: FieldId,
},
InvalidBitWidth {
bits: u8,
},
InvalidFixedPointScale {
scale: u32,
},
InvalidFixedPointRange {
min_q: i64,
max_q: i64,
},
}Expand description
Errors that can occur when building or validating a schema.
Variants§
DuplicateComponentId
Duplicate component ID in a schema.
Fields
§
id: ComponentIdDuplicateFieldId
Duplicate field ID within a component.
InvalidBitWidth
Invalid bit width for fixed-width integers.
InvalidFixedPointScale
Fixed-point scale must be non-zero.
InvalidFixedPointRange
Fixed-point min/max range is invalid.
Trait Implementations§
Source§impl Clone for SchemaError
impl Clone for SchemaError
Source§fn clone(&self) -> SchemaError
fn clone(&self) -> SchemaError
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 SchemaError
impl Debug for SchemaError
Source§impl PartialEq for SchemaError
impl PartialEq for SchemaError
impl Eq for SchemaError
impl StructuralPartialEq for SchemaError
Auto Trait Implementations§
impl Freeze for SchemaError
impl RefUnwindSafe for SchemaError
impl Send for SchemaError
impl Sync for SchemaError
impl Unpin for SchemaError
impl UnwindSafe for SchemaError
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