pub struct MaterialLoader<'a> { /* private fields */ }Expand description
Loader for Google Material Symbols (bundled SVG).
Material SVGs are scalable at render time, so no size method.
Implementations§
Source§impl<'a> MaterialLoader<'a>
impl<'a> MaterialLoader<'a>
Sourcepub fn new(id: impl Into<IconId<'a>>) -> Self
pub fn new(id: impl Into<IconId<'a>>) -> Self
Construct a new Material Symbols 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 the material-icons feature; None otherwise.
Sourcepub fn load_indicator() -> Option<AnimatedIcon>
pub fn load_indicator() -> Option<AnimatedIcon>
Load the Material animated spinner. Associated function; no self.
Requires the material-icons feature; None otherwise.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for MaterialLoader<'a>
impl<'a> !Send for MaterialLoader<'a>
impl<'a> !Sync for MaterialLoader<'a>
impl<'a> !UnwindSafe for MaterialLoader<'a>
impl<'a> Freeze for MaterialLoader<'a>
impl<'a> Unpin for MaterialLoader<'a>
impl<'a> UnsafeUnpin for MaterialLoader<'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