pub struct Resources<'a> { /* private fields */ }
Expand description
Resources filesystem.
Implementations
sourceimpl<'a> Resources<'a>
impl<'a> Resources<'a>
sourcepub fn find_resource<'n>(
&self,
ty: impl Into<Name<'n>>,
name: impl Into<Name<'n>>,
lang: impl Into<Name<'n>>
) -> Result<&'a [u8], FindError>
pub fn find_resource<'n>(
&self,
ty: impl Into<Name<'n>>,
name: impl Into<Name<'n>>,
lang: impl Into<Name<'n>>
) -> Result<&'a [u8], FindError>
Finds a resource by its type, name and language.
sourcepub fn version_info(&self) -> Result<VersionInfo<'a>, FindError>
pub fn version_info(&self) -> Result<VersionInfo<'a>, FindError>
Gets the Version Information.
sourcepub fn find<P: AsRef<Path> + ?Sized>(
&self,
path: &P
) -> Result<Entry<'a>, FindError>
pub fn find<P: AsRef<Path> + ?Sized>(
&self,
path: &P
) -> Result<Entry<'a>, FindError>
Finds a file or directory by its path.
Trait Implementations
impl<'a> Copy for Resources<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Resources<'a>
impl<'a> Send for Resources<'a>
impl<'a> Sync for Resources<'a>
impl<'a> Unpin for Resources<'a>
impl<'a> UnwindSafe for Resources<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more