pub struct SharedRootLayout(/* private fields */);Expand description
Type-erased VersionJsonRootLayout shared across driver and launcher boundaries.
Implementations§
pub fn new<L>(layout: L) -> Selfwhere
L: VersionJsonRootLayout + 'static,
Trait Implementations§
type Resource = VersionJsonRootResource
type ExtendedResource = VersionJsonRootResource
fn get_resource(&self, root: &Path, resource: Self::Resource) -> Option<PathBuf>
fn get_extended_resource( &self, root: &Path, resource: Self::ExtendedResource, ) -> Option<PathBuf>
fn name(&self) -> &'static str
fn try_get_resource( &self, root: &Path, resource: Self::Resource, ) -> Result<PathBuf, Error>
fn try_get_extended_resource(
&self,
root: &Path,
resource: Self::ExtendedResource,
) -> Result<PathBuf, Error>where
Self::ExtendedResource: Debug,
Auto Trait Implementations§
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