Struct crowbook::Source
[−]
[src]
pub struct Source { /* fields omitted */ }
Source of an error.
Contains (if it's possible) the file and ideally the line that the user should look at to correct their error.
Methods
impl Source
[src]
fn empty() -> Source
[src]
Create an empty source, with both fields set to None
fn new<S: Into<String>>(s: S) -> Source
[src]
Create a new source pointing to file
fn set_line(&mut self, line: u32) -> &mut Self
[src]
Sets line number of a source.
Trait Implementations
impl Debug for Source
[src]
impl PartialEq for Source
[src]
fn eq(&self, __arg_0: &Source) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Source) -> bool
[src]
This method tests for !=
.
impl Clone for Source
[src]
fn clone(&self) -> Source
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Display for Source
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more