Struct go_vm::parser::FilePosErrors
source · 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 copy 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> !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