Struct goods_fs::FileSource[][src]

pub struct FileSource { /* fields omitted */ }

Asset source that treats asset key as relative file path, joins it with root path and loads asset data from file.

Implementations

impl FileSource[src]

pub fn new(root: PathBuf) -> Self[src]

Create new source with specified root path

Trait Implementations

impl AutoLocalSource for FileSource[src]

impl Debug for FileSource[src]

impl<P> Source<P> for FileSource where
    P: AsRef<str>, 
[src]

Auto Trait Implementations

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<K, S> LocalSource<K> for S where
    S: Source<K> + AutoLocalSource + Send + Sync
[src]

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.