pub struct LucideLoader<'a> { /* private fields */ }Expand description
Loader for Lucide Icons (bundled SVG).
Implementations§
Source§impl<'a> LucideLoader<'a>
impl<'a> LucideLoader<'a>
Sourcepub fn new(id: impl Into<IconId<'a>>) -> Self
pub fn new(id: impl Into<IconId<'a>>) -> Self
Construct a new Lucide Icons loader for the given icon id.
Sourcepub fn load(self) -> Option<IconData>
pub fn load(self) -> Option<IconData>
Load the icon, returning its data. Requires feature = "lucide-icons".
Sourcepub fn load_indicator() -> Option<AnimatedIcon>
pub fn load_indicator() -> Option<AnimatedIcon>
Load the Lucide animated spinner. Associated function; no self.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for LucideLoader<'a>
impl<'a> !Send for LucideLoader<'a>
impl<'a> !Sync for LucideLoader<'a>
impl<'a> !UnwindSafe for LucideLoader<'a>
impl<'a> Freeze for LucideLoader<'a>
impl<'a> Unpin for LucideLoader<'a>
impl<'a> UnsafeUnpin for LucideLoader<'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