Enum lexer::error::MiscParseError
source · [−]pub enum MiscParseError {
PostPreOp(Span),
Lex(LexError),
Recursive(Box<ParseError>),
}
Variants
PostPreOp(Span)
Lex(LexError)
Recursive(Box<ParseError>)
Implementations
sourceimpl MiscParseError
impl MiscParseError
pub fn post_pre_op(l: usize, r: usize) -> Self
pub fn lex(message: &str, loc: Option<usize>) -> Self
pub fn as_diagnostic<FileId>(&self, fileid: FileId) -> Diagnostic<FileId>
pub fn offset_spans(&mut self, offset: usize)
Trait Implementations
sourceimpl Clone for MiscParseError
impl Clone for MiscParseError
sourcefn clone(&self) -> MiscParseError
fn clone(&self) -> MiscParseError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MiscParseError
impl Debug for MiscParseError
sourceimpl From<MiscParseError> for ParseError
impl From<MiscParseError> for ParseError
sourcefn from(x: MiscParseError) -> Self
fn from(x: MiscParseError) -> Self
Performs the conversion.
sourceimpl From<ParseError<usize, Tok, MiscParseError>> for MiscParseError
impl From<ParseError<usize, Tok, MiscParseError>> for MiscParseError
sourcefn from(x: ParseError) -> Self
fn from(x: ParseError) -> Self
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for MiscParseError
impl Send for MiscParseError
impl Sync for MiscParseError
impl Unpin for MiscParseError
impl UnwindSafe for MiscParseError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more