pub enum InvalidStateType {
InvalidPosition(NonZeroUsize),
Overlap(NonZeroUsize, NonZeroUsize),
}Expand description
A type of invalid state, associated with an InvalidStateError.
Variants§
InvalidPosition(NonZeroUsize)
The car with the provided index is in an invalid position.
Overlap(NonZeroUsize, NonZeroUsize)
The cars with the provided indices overlap.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InvalidStateType
impl RefUnwindSafe for InvalidStateType
impl Send for InvalidStateType
impl Sync for InvalidStateType
impl Unpin for InvalidStateType
impl UnsafeUnpin for InvalidStateType
impl UnwindSafe for InvalidStateType
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