pub enum GenError {
BufferTooSmall(usize),
BufferTooBig(usize),
InvalidOffset,
IoError(Error),
CustomError(u32),
NotYetImplemented,
}
Expand description
Base type for generator errors
Variants§
BufferTooSmall(usize)
Input buffer is too small. Argument is the maximum index that is required
BufferTooBig(usize)
We expected to fill the whole buffer but there is some space left
InvalidOffset
Operation asked for accessing an invalid index
IoError(Error)
IoError returned by Write
CustomError(u32)
Allocated for custom errors
NotYetImplemented
Generator or function not yet implemented
Trait Implementations§
source§impl Error for GenError
impl Error for GenError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 !RefUnwindSafe for GenError
impl Send for GenError
impl Sync for GenError
impl Unpin for GenError
impl !UnwindSafe for GenError
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