pub struct Storage<L: Layout, P = ()> {
pub path: PathBuf,
pub parent: P,
pub layout: L,
}Fields§
§path: PathBuf§parent: P§layout: LImplementations§
Trait Implementations§
Source§impl<L: Layout, P> Layoutable<L> for Storage<L, P>
impl<L: Layout, P> Layoutable<L> for Storage<L, P>
fn layout(&self) -> &L
fn root_path(&self) -> &Path
fn get_resource(&self, resource: L::Resource) -> Option<PathBuf>
fn try_get_resource(&self, resource: L::Resource) -> Result<PathBuf>
fn get_existing_resource(&self, resource: L::Resource) -> Option<PathBuf>
fn get_extended_resource( &self, resource: L::ExtendedResource, ) -> Option<PathBuf>
fn try_get_extended_resource(
&self,
resource: L::ExtendedResource,
) -> Result<PathBuf>where
L::ExtendedResource: Debug,
Auto Trait Implementations§
impl<L, P> Forget for Storage<L, P>
impl<L, P> Freeze for Storage<L, P>
impl<L, P> Move for Storage<L, P>
impl<L, P> RefUnwindSafe for Storage<L, P>where
P: RefUnwindSafe,
L: RefUnwindSafe,
impl<L, P> Send for Storage<L, P>where
P: Send,
impl<L, P> Sync for Storage<L, P>where
P: Sync,
impl<L, P> Unpin for Storage<L, P>
impl<L, P> UnsafeUnpin for Storage<L, P>where
P: UnsafeUnpin,
L: UnsafeUnpin,
impl<L, P> UnwindSafe for Storage<L, P>where
P: UnwindSafe,
L: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more