pub enum AccessError {
Show 15 variants
DecisionSlotIxOutOfBounds(Word),
DecisionIndexOutOfBounds,
DecisionLengthTooLarge(usize),
DecisionValueRangeOutOfBounds(Word, Word),
SolutionDataOutOfBounds,
StateSlotIxOutOfBounds(Word),
StateValueRangeOutOfBounds(Word, Word),
InvalidStateSlotDelta(Word),
StateMutationsLengthTooLarge(usize),
StateValueTooLarge(usize),
KeyLengthOutOfBounds(Word),
InvalidAccessRange,
SlotsLengthTooLarge(usize),
InvalidSlotType(Word),
MissingArg(MissingAccessArgError),
}
Expand description
Access operation error.
Variants§
DecisionSlotIxOutOfBounds(Word)
A decision variable slot was out of bounds.
DecisionIndexOutOfBounds
A decision variable slot index was out of bounds.
DecisionLengthTooLarge(usize)
A decision variable length was too large.
DecisionValueRangeOutOfBounds(Word, Word)
A decision var index was out of bounds.
SolutionDataOutOfBounds
A solution data index was out of bounds.
StateSlotIxOutOfBounds(Word)
A state slot index was out of bounds.
StateValueRangeOutOfBounds(Word, Word)
A state slot index was out of bounds.
InvalidStateSlotDelta(Word)
A state slot delta value was invalid. Must be 0
(pre) or 1
(post).
StateMutationsLengthTooLarge(usize)
The total length of the set of state mutations was too large.
StateValueTooLarge(usize)
The state slot value was too large.
KeyLengthOutOfBounds(Word)
Key length was out of bounds.
InvalidAccessRange
The access range was invalid
SlotsLengthTooLarge(usize)
The length of the slots was too large large to fit in a Word
.
InvalidSlotType(Word)
The which_slots
argument was invalid.
MissingArg(MissingAccessArgError)
Missing argument error.
Trait Implementations§
Source§impl Debug for AccessError
impl Debug for AccessError
Source§impl Display for AccessError
impl Display for AccessError
Source§impl Error for AccessError
impl Error for AccessError
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 From<AccessError> for OpError
impl From<AccessError> for OpError
Source§fn from(source: AccessError) -> Self
fn from(source: AccessError) -> Self
Converts to this type from the input type.
Source§impl From<MissingAccessArgError> for AccessError
impl From<MissingAccessArgError> for AccessError
Source§fn from(source: MissingAccessArgError) -> Self
fn from(source: MissingAccessArgError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AccessError
impl RefUnwindSafe for AccessError
impl Send for AccessError
impl Sync for AccessError
impl Unpin for AccessError
impl UnwindSafe for AccessError
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> 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