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