pub struct FilePosErrors<'a> { /* private fields */ }
Implementations§
Source§impl<'a> FilePosErrors<'a>
impl<'a> FilePosErrors<'a>
pub fn new(file: &'a File, elist: &'a ErrorList) -> FilePosErrors<'a>
pub fn add(&self, pos: usize, msg: String, soft: bool)
pub fn add_str(&self, pos: usize, s: &str, soft: bool)
pub fn parser_add(&self, pos: usize, msg: String)
pub fn parser_add_str(&self, pos: usize, s: &str)
Trait Implementations§
Source§impl<'a> Clone for FilePosErrors<'a>
impl<'a> Clone for FilePosErrors<'a>
Source§fn clone(&self) -> FilePosErrors<'a>
fn clone(&self) -> FilePosErrors<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for FilePosErrors<'a>
impl<'a> !RefUnwindSafe for FilePosErrors<'a>
impl<'a> !Send for FilePosErrors<'a>
impl<'a> !Sync for FilePosErrors<'a>
impl<'a> Unpin for FilePosErrors<'a>
impl<'a> !UnwindSafe for FilePosErrors<'a>
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