[][src]Struct endbasic_core::program::DemoStoreOverlay

pub struct DemoStoreOverlay<S: Store> { /* fields omitted */ }

Wraps a Store and exposes a bunch of read-only demo files.

All demo file names are case insensitive. However, this preserves the case sensitiveness behavior of the underlying store for any files that are passed through.

This takes ownership of any file names that start with DEMO:, which means any such files in the underlying store become invisible. This should not be a problem in practice because most file systems deny the : character in file names.

Implementations

impl<S: Store> DemoStoreOverlay<S>[src]

pub fn new(delegate: S) -> Self[src]

Creates a new demo store that wraps the delegate store.

pub fn unmount(self) -> S[src]

Disowns and returns the underlying delegate store.

Trait Implementations

impl<S: Store> Store for DemoStoreOverlay<S>[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for DemoStoreOverlay<S> where
    S: RefUnwindSafe
[src]

impl<S> Send for DemoStoreOverlay<S> where
    S: Send
[src]

impl<S> Sync for DemoStoreOverlay<S> where
    S: Sync
[src]

impl<S> Unpin for DemoStoreOverlay<S> where
    S: Unpin
[src]

impl<S> UnwindSafe for DemoStoreOverlay<S> where
    S: UnwindSafe
[src]

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, 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.