pub enum InvalidRange {
Start(InvalidPosition),
End(InvalidPosition),
Reversed,
TooManyLines,
}Expand description
Why a client-supplied range was rejected.
Variants§
Start(InvalidPosition)
The start position is invalid.
End(InvalidPosition)
The end position is invalid.
Reversed
The start lies after the end.
TooManyLines
The range spans more than MAX_RANGE_LINES lines.
Trait Implementations§
Source§impl Clone for InvalidRange
impl Clone for InvalidRange
impl Copy for InvalidRange
Source§impl Debug for InvalidRange
impl Debug for InvalidRange
Source§impl Display for InvalidRange
impl Display for InvalidRange
impl Eq for InvalidRange
Source§impl Error for InvalidRange
impl Error for InvalidRange
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Source§impl From<InvalidRange> for Error
impl From<InvalidRange> for Error
Source§fn from(source: InvalidRange) -> Self
fn from(source: InvalidRange) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InvalidRange
impl PartialEq for InvalidRange
impl StructuralPartialEq for InvalidRange
Auto Trait Implementations§
impl Freeze for InvalidRange
impl RefUnwindSafe for InvalidRange
impl Send for InvalidRange
impl Sync for InvalidRange
impl Unpin for InvalidRange
impl UnsafeUnpin for InvalidRange
impl UnwindSafe for InvalidRange
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.