pub enum LineColumnToLocationError {
LineZero,
LineNumberTooBig,
ColumnNumberTooBig,
}Available on crate feature
proc-macro2 only.Expand description
The error returned when converting a proc_macro2::LineColumn to Location.
Variants§
LineZero
Line 0 was encountered, which is invalid, source lines are 1-indexed.
LineNumberTooBig
Line number overflowed a u32.
ColumnNumberTooBig
Column number overflowed a u32.
Trait Implementations§
Source§impl Clone for LineColumnToLocationError
impl Clone for LineColumnToLocationError
Source§fn clone(&self) -> LineColumnToLocationError
fn clone(&self) -> LineColumnToLocationError
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 LineColumnToLocationError
impl Debug for LineColumnToLocationError
Source§impl Display for LineColumnToLocationError
impl Display for LineColumnToLocationError
impl Copy for LineColumnToLocationError
Auto Trait Implementations§
impl Freeze for LineColumnToLocationError
impl RefUnwindSafe for LineColumnToLocationError
impl Send for LineColumnToLocationError
impl Sync for LineColumnToLocationError
impl Unpin for LineColumnToLocationError
impl UnwindSafe for LineColumnToLocationError
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more