pub struct Icon<Font> {
pub font: Font,
pub code_point: char,
pub size: Option<Pixels>,
pub spacing: f32,
pub side: Side,
}Expand description
The content of the Icon.
Fields§
§font: FontThe font that will be used to display the code_point.
code_point: charThe unicode code point that will be used as the icon.
size: Option<Pixels>The font size of the content.
spacing: f32§side: SideTrait Implementations§
Auto Trait Implementations§
impl<Font> Freeze for Icon<Font>where
Font: Freeze,
impl<Font> RefUnwindSafe for Icon<Font>where
Font: RefUnwindSafe,
impl<Font> Send for Icon<Font>where
Font: Send,
impl<Font> Sync for Icon<Font>where
Font: Sync,
impl<Font> Unpin for Icon<Font>where
Font: Unpin,
impl<Font> UnsafeUnpin for Icon<Font>where
Font: UnsafeUnpin,
impl<Font> UnwindSafe for Icon<Font>where
Font: UnwindSafe,
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