pub struct IconIdentifier {
pub collection: String,
pub icon_name: String,
pub full_name: String,
}Expand description
Represents a parsed icon identifier (collection:icon-name)
Fields§
§collection: String§icon_name: String§full_name: StringImplementations§
Source§impl IconIdentifier
impl IconIdentifier
Sourcepub fn parse(input: &str) -> Result<Self>
pub fn parse(input: &str) -> Result<Self>
Parse an icon identifier from the format “collection:icon-name”
Sourcepub fn module_name(&self) -> String
pub fn module_name(&self) -> String
Get the module name for this collection (e.g., “mdi”)
Sourcepub fn to_const_name(&self) -> String
pub fn to_const_name(&self) -> String
Convert the icon name to a valid Rust constant name (PascalCase)
Trait Implementations§
Source§impl Clone for IconIdentifier
impl Clone for IconIdentifier
Source§fn clone(&self) -> IconIdentifier
fn clone(&self) -> IconIdentifier
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 moreAuto Trait Implementations§
impl Freeze for IconIdentifier
impl RefUnwindSafe for IconIdentifier
impl Send for IconIdentifier
impl Sync for IconIdentifier
impl Unpin for IconIdentifier
impl UnwindSafe for IconIdentifier
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