pub enum MaskReason {
NotEnoughBits {
expected: usize,
available: usize,
},
FieldCountMismatch {
expected: usize,
actual: usize,
},
MissingField {
field: FieldId,
},
UnknownComponent {
component: ComponentId,
},
InvalidComponentId {
raw: u16,
},
InvalidFieldIndex {
field_index: usize,
max: usize,
},
ComponentPresenceMismatch {
component: ComponentId,
},
EmptyFieldMask {
component: ComponentId,
},
}Expand description
Details for invalid mask errors.
Variants§
NotEnoughBits
FieldCountMismatch
MissingField
UnknownComponent
Fields
§
component: ComponentIdInvalidComponentId
InvalidFieldIndex
ComponentPresenceMismatch
Fields
§
component: ComponentIdEmptyFieldMask
Fields
§
component: ComponentIdTrait Implementations§
Source§impl Clone for MaskReason
impl Clone for MaskReason
Source§fn clone(&self) -> MaskReason
fn clone(&self) -> MaskReason
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 MaskReason
impl Debug for MaskReason
Source§impl Display for MaskReason
impl Display for MaskReason
Source§impl PartialEq for MaskReason
impl PartialEq for MaskReason
impl Copy for MaskReason
impl Eq for MaskReason
impl StructuralPartialEq for MaskReason
Auto Trait Implementations§
impl Freeze for MaskReason
impl RefUnwindSafe for MaskReason
impl Send for MaskReason
impl Sync for MaskReason
impl Unpin for MaskReason
impl UnwindSafe for MaskReason
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