pub struct ResourceName<'a> {
pub module: Cow<'a, str>,
pub parent: Cow<'a, str>,
pub base: Cow<'a, str>,
pub extension: Cow<'a, str>,
}Expand description
Represents the components of a resource name in a JImage file.
Fields§
§module: Cow<'a, str>§parent: Cow<'a, str>§base: Cow<'a, str>§extension: Cow<'a, str>Implementations§
Source§impl<'a> ResourceName<'a>
impl<'a> ResourceName<'a>
Sourcepub fn get_full_name(&self) -> (String, String)
pub fn get_full_name(&self) -> (String, String)
Gets the full resource name as a tuple of (module, full_path).
The full path is constructed by combining the parent, base, and extension.
For example, if the module is "java.base", parent is "java/lang",
base is "String", and extension is "class", the full path will be
"java/lang/String.class".
Trait Implementations§
Source§impl<'a> Clone for ResourceName<'a>
impl<'a> Clone for ResourceName<'a>
Source§fn clone(&self) -> ResourceName<'a>
fn clone(&self) -> ResourceName<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ResourceName<'a>
impl<'a> Debug for ResourceName<'a>
Source§impl<'a> Hash for ResourceName<'a>
impl<'a> Hash for ResourceName<'a>
Source§impl<'a> Ord for ResourceName<'a>
impl<'a> Ord for ResourceName<'a>
Source§fn cmp(&self, other: &ResourceName<'a>) -> Ordering
fn cmp(&self, other: &ResourceName<'a>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialEq for ResourceName<'a>
impl<'a> PartialEq for ResourceName<'a>
Source§impl<'a> PartialOrd for ResourceName<'a>
impl<'a> PartialOrd for ResourceName<'a>
impl<'a> Eq for ResourceName<'a>
impl<'a> StructuralPartialEq for ResourceName<'a>
Auto Trait Implementations§
impl<'a> Freeze for ResourceName<'a>
impl<'a> RefUnwindSafe for ResourceName<'a>
impl<'a> Send for ResourceName<'a>
impl<'a> Sync for ResourceName<'a>
impl<'a> Unpin for ResourceName<'a>
impl<'a> UnwindSafe for ResourceName<'a>
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