pub enum MSQError {
QueueFull,
QueueEmpty,
QueueIndexOutOfBounds,
UnknowmError,
}Expand description
Errors that may be encountered during use of the MultiStackQueue
QueueFull- Returned by thepushmethod when trying to append a value to a queue that is already fullQueueEmpty- Returned by thepopmethod when trying to pop a value from an empty queueQueueIndexOutOfBounds- When trying to access a queue beyond the multiqueueUnknownError- This should never happen. Used for development
Variants§
Trait Implementations§
impl Copy for MSQError
impl Eq for MSQError
impl StructuralPartialEq for MSQError
Auto Trait Implementations§
impl Freeze for MSQError
impl RefUnwindSafe for MSQError
impl Send for MSQError
impl Sync for MSQError
impl Unpin for MSQError
impl UnwindSafe for MSQError
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