[−][src]Struct endbasic_core::program::DemoStoreOverlay
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]
S: RefUnwindSafe,
impl<S> Send for DemoStoreOverlay<S> where
S: Send,
[src]
S: Send,
impl<S> Sync for DemoStoreOverlay<S> where
S: Sync,
[src]
S: Sync,
impl<S> Unpin for DemoStoreOverlay<S> where
S: Unpin,
[src]
S: Unpin,
impl<S> UnwindSafe for DemoStoreOverlay<S> where
S: UnwindSafe,
[src]
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,