[][src]Struct saltwater::Source

pub struct Source {
    pub code: Rc<str>,
    pub path: PathBuf,
}

The Source type for codespan::Files.

Used to store extra metadata about the file, like the absolute filename.

NOTE: If path is empty (e.g. by using my_string.into()), then the path will be relative to the compiler, not to the current file. This is recommended only for test code and proof of concepts, since it does not adhere to the C standard.

Fields

code: Rc<str>path: PathBuf

Trait Implementations

impl AsRef<str> for Source[src]

impl Clone for Source[src]

impl Debug for Source[src]

impl<T: Into<Rc<str>>> From<T> for Source[src]

Auto Trait Implementations

impl !RefUnwindSafe for Source

impl !Send for Source

impl !Sync for Source

impl Unpin for Source

impl UnwindSafe for Source

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,