Struct erg_parser::error::LexError
source · [−]pub struct LexError(_);
Implementations
sourceimpl LexError
impl LexError
pub const fn new(core: ErrorCore) -> Self
pub fn set_hint<S: Into<AtomicStr>>(&mut self, hint: S)
pub fn compiler_bug(errno: usize, loc: Location, fn_name: &str, line: u32) -> Self
pub fn feature_error(errno: usize, loc: Location, name: &str) -> Self
pub fn simple_syntax_error(errno: usize, loc: Location) -> Self
pub fn syntax_error<S: Into<AtomicStr>>(
errno: usize,
loc: Location,
desc: S,
hint: Option<AtomicStr>
) -> Self
pub fn syntax_warning<S: Into<AtomicStr>>(
errno: usize,
loc: Location,
desc: S,
hint: Option<AtomicStr>
) -> Self
pub fn no_var_error(
errno: usize,
loc: Location,
name: &str,
similar_name: Option<String>
) -> Self
Trait Implementations
sourceimpl Stream<LexError> for LexErrors
impl Stream<LexError> for LexErrors
fn payload(self) -> Vec<LexError>
fn ref_payload(&self) -> &Vec<LexError>
fn ref_mut_payload(&mut self) -> &mut Vec<LexError>
fn clear(&mut self)
fn len(&self) -> usize
fn size(&self) -> usize
fn is_empty(&self) -> bool
fn insert(&mut self, idx: usize, elem: T)
fn remove(&mut self, idx: usize) -> T
fn push(&mut self, elem: T)
fn append<S>(&mut self, s: &mut S)where
S: Stream<T>,
fn pop(&mut self) -> Option<T>
fn lpop(&mut self) -> Option<T>
fn get(&self, idx: usize) -> Option<&T>
fn get_mut(&mut self, idx: usize) -> Option<&mut T>
fn first(&self) -> Option<&T>
fn first_mut(&mut self) -> Option<&mut T>
fn last(&self) -> Option<&T>
fn last_mut(&mut self) -> Option<&mut T>
fn iter(&self) -> Iter<'_, T>
fn iter_mut(&mut self) -> IterMut<'_, T>
fn into_iter(self) -> IntoIter<T, Global>
fn take_all(&mut self) -> Vec<T, Global>
fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = T>,
Auto Trait Implementations
impl RefUnwindSafe for LexError
impl Send for LexError
impl Sync for LexError
impl Unpin for LexError
impl UnwindSafe for LexError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more