Trait LoadSource

Source
pub trait LoadSource {
    // Required method
    fn load(&self) -> Result<Source<'_>>;
}
Expand description

Any type that can load a Source synchronously.

Required Methods§

Source

fn load(&self) -> Result<Source<'_>>

Load this value synchronously into a Source value.

Implementations on Foreign Types§

Source§

impl<'a> LoadSource for &'a str

Source§

fn load(&self) -> Result<Source<'_>>

Source§

impl<'a> LoadSource for &'a Path

Source§

fn load(&self) -> Result<Source<'_>>

Implementors§