pub enum BoundsError {
NotWithinBounds,
IOError(Error, Option<PathBuf>),
ParseError(ParseError),
}
Expand description
Defines errors from manipulating IncludeBounds
.
Variants§
NotWithinBounds
The given offset was not within the collection of bounds or single
IncludeBounds
.
IOError(Error, Option<PathBuf>)
Some IO Error. Probably from trying to open a file. May include the path trying to be opened.
ParseError(ParseError)
Some ParseError
. Probably from a failed attempt to convert from lines
to byte offsets.
Trait Implementations§
Source§impl Debug for BoundsError
impl Debug for BoundsError
Source§impl From<Error> for BoundsError
impl From<Error> for BoundsError
Source§impl From<ParseError> for BoundsError
impl From<ParseError> for BoundsError
Source§fn from(err: ParseError) -> Self
fn from(err: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BoundsError
impl !RefUnwindSafe for BoundsError
impl Send for BoundsError
impl Sync for BoundsError
impl Unpin for BoundsError
impl !UnwindSafe for BoundsError
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