pub struct Resources<'a> { /* private fields */ }
Expand description
Resources filesystem.
Implementations
sourceimpl<'a> Resources<'a>
impl<'a> Resources<'a>
sourcepub fn find_resource(&self, path: &[Name<'_>; 2]) -> Result<&'a [u8], FindError>
pub fn find_resource(&self, path: &[Name<'_>; 2]) -> Result<&'a [u8], FindError>
Finds a resource by its type and name.
sourcepub fn find_resources(
&self,
path: &[Name<'_>; 2]
) -> Result<Directory<'a>, FindError>
pub fn find_resources(
&self,
path: &[Name<'_>; 2]
) -> Result<Directory<'a>, FindError>
Finds the language directory for a resource with given type and name.
sourcepub fn find_resource_ex(
&self,
path: &[Name<'_>; 3]
) -> Result<&'a [u8], FindError>
pub fn find_resource_ex(
&self,
path: &[Name<'_>; 3]
) -> Result<&'a [u8], FindError>
Finds the resource with specified 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.
sourceimpl<'a> Resources<'a>
impl<'a> Resources<'a>
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