pub struct DMExtraInfo {
pub range: Range,
pub message_template_data: HashMap<String, String>,
}Fields§
§range: RangeThe current range of the error
message_template_data: HashMap<String, String>Extra data that will be used to replace the templates in the message
Implementations§
Source§impl DMExtraInfo
impl DMExtraInfo
pub fn new(range: Range) -> DMExtraInfo
Sourcepub fn range_as_string(&self) -> String
pub fn range_as_string(&self) -> String
Print the Range as a String.
Used for logging.
Trait Implementations§
Source§impl Clone for DMExtraInfo
impl Clone for DMExtraInfo
Source§fn clone(&self) -> DMExtraInfo
fn clone(&self) -> DMExtraInfo
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 Freeze for DMExtraInfo
impl RefUnwindSafe for DMExtraInfo
impl Send for DMExtraInfo
impl Sync for DMExtraInfo
impl Unpin for DMExtraInfo
impl UnwindSafe for DMExtraInfo
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