pub enum IndexError {
OutOfBounds,
InvalidChar(Utf8Error),
}
Variants§
OutOfBounds
The index is outside of the bounds of the file
InvalidChar(Utf8Error)
The index is not a valid utf8 character
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IndexError
impl RefUnwindSafe for IndexError
impl Send for IndexError
impl Sync for IndexError
impl Unpin for IndexError
impl UnwindSafe for IndexError
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