Enum IntegrityError
pub enum IntegrityError {
UnknownPartInOutputImm {
output_index: usize,
},
UnknownPartInAddrImm {
memory_index: usize,
},
PartHasNoValidMapping {
part_index: usize,
},
MappingDoesNotMatchPartSize {
part_index: usize,
mapping_entries: usize,
part_bits: usize,
},
PartSizeDoesNotMatchBits {
part_index: usize,
},
}
Expand description
Error returned by Encoding::integrity_check
.
Variants§
UnknownPartInOutputImm
The output contains a reference to an immediate value of a non-existant part
UnknownPartInAddrImm
The memory access contains a reference to an immediate value of a non-existant part.
PartHasNoValidMapping
Part has no valid mapping.
MappingDoesNotMatchPartSize
The part mapping has a number of entries that is not equal to the number it should have.
A part mapping should have 2**N
entries.
Fields
PartSizeDoesNotMatchBits
The part size does not correspond to the number of Bit::Part(..)
bits in self.bits
.
Trait Implementations§
§impl Clone for IntegrityError
impl Clone for IntegrityError
§fn clone(&self) -> IntegrityError
fn clone(&self) -> IntegrityError
Returns a copy 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 more§impl Debug for IntegrityError
impl Debug for IntegrityError
§impl Display for IntegrityError
impl Display for IntegrityError
§impl Error for IntegrityError
impl Error for IntegrityError
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()
Auto Trait Implementations§
impl Freeze for IntegrityError
impl RefUnwindSafe for IntegrityError
impl Send for IntegrityError
impl Sync for IntegrityError
impl Unpin for IntegrityError
impl UnwindSafe for IntegrityError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more