Struct tiger_lib::PointedMessage
source · pub struct PointedMessage {
pub loc: Loc,
pub length: usize,
pub msg: Option<String>,
}Fields§
§loc: LocWhich file and where in the file the error occurs. Might point to a whole file, rather than a specific location in the file.
length: usizeThe length of the offending phrase in characters. Set this to 0 if the length cannot be determined. This will determine the number of carets that are printed at the given location. e.g.: ^^^^^^^^^ TODO: If we end up adding length to Loc, this field can be deleted.
msg: Option<String>A short message that will be printed at the caret location.
Implementations§
Trait Implementations§
source§impl Clone for PointedMessage
impl Clone for PointedMessage
source§fn clone(&self) -> PointedMessage
fn clone(&self) -> PointedMessage
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 moresource§impl Debug for PointedMessage
impl Debug for PointedMessage
source§impl Hash for PointedMessage
impl Hash for PointedMessage
source§impl PartialEq for PointedMessage
impl PartialEq for PointedMessage
source§fn eq(&self, other: &PointedMessage) -> bool
fn eq(&self, other: &PointedMessage) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for PointedMessage
impl StructuralEq for PointedMessage
impl StructuralPartialEq for PointedMessage
Auto Trait Implementations§
impl RefUnwindSafe for PointedMessage
impl Send for PointedMessage
impl Sync for PointedMessage
impl Unpin for PointedMessage
impl UnwindSafe for PointedMessage
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