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]

Create an empty source, with both fields set to None

Create a new source pointing to file

Sets line number of a source.

Trait Implementations

impl Debug for Source
[src]

Formats the value using the given formatter.

impl PartialEq for Source
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for Source
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Display for Source
[src]

Formats the value using the given formatter. Read more

impl<'a> From<&'a Source> for Source
[src]

Performs the conversion.