Source represents some literal source code.
Whether a repl session, a file on disk, or some library code.
It's essentially a string with a path, the path serving as the source's name.
Source files without a path point to
though this behaviour might change in the future.
Creates a new
Source given both an
&str and a
Note that this function does not check that the contents of the file
match the source.
Source::source should be used instead.
Source from a path.
This will read a file to create a new source.
Build an empty
Source containing just a string.
Note that this source will point towards
impl StructuralEq for Source[src]
impl StructuralPartialEq for Source[src]
impl RefUnwindSafe for Source
impl UnwindSafe for Source
type Error = Infallible
The type returned in the event of a conversion error.