pub enum GetRangeError {
ErrorVariant,
EmptyList,
EmptyBlock,
UndefinedKey,
}Expand description
Errors that may occur during get_range. They should
never happen if Cst.status is
AstStatus::Complete.
Variants§
ErrorVariant
This is an ERROR variant and thus spans no range in the source code.
EmptyList
This is an empty list and thus spans no range in the source code.
EmptyBlock
This is an empty block and thus spans no range in the source code.
UndefinedKey
This is either
which don’t actually exist in the source code and are added by the parser.
Trait Implementations§
Source§impl Clone for GetRangeError
impl Clone for GetRangeError
Source§fn clone(&self) -> GetRangeError
fn clone(&self) -> GetRangeError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GetRangeError
impl Debug for GetRangeError
Source§impl Hash for GetRangeError
impl Hash for GetRangeError
Source§impl Ord for GetRangeError
impl Ord for GetRangeError
Source§fn cmp(&self, other: &GetRangeError) -> Ordering
fn cmp(&self, other: &GetRangeError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GetRangeError
impl PartialEq for GetRangeError
Source§impl PartialOrd for GetRangeError
impl PartialOrd for GetRangeError
impl Copy for GetRangeError
impl Eq for GetRangeError
impl StructuralPartialEq for GetRangeError
Auto Trait Implementations§
impl Freeze for GetRangeError
impl RefUnwindSafe for GetRangeError
impl Send for GetRangeError
impl Sync for GetRangeError
impl Unpin for GetRangeError
impl UnwindSafe for GetRangeError
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