pub struct SvgIconProps {
pub layout: LayoutStyle,
pub svg: SvgSource,
pub fit: SvgFit,
pub color: Color,
pub inherit_color: bool,
pub opacity: f32,
}Fields§
§layout: LayoutStyle§svg: SvgSource§fit: SvgFit§color: Color§inherit_color: boolWhen true, the icon will use the nearest inherited foreground (if present) during paint.
When no foreground is inherited, color is used as the fallback.
opacity: f32Implementations§
Trait Implementations§
Source§impl Clone for SvgIconProps
impl Clone for SvgIconProps
Source§fn clone(&self) -> SvgIconProps
fn clone(&self) -> SvgIconProps
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 Debug for SvgIconProps
impl Debug for SvgIconProps
Source§impl IntoElement for SvgIconProps
impl IntoElement for SvgIconProps
fn into_element(self, id: GlobalElementId) -> AnyElement
Auto Trait Implementations§
impl Freeze for SvgIconProps
impl RefUnwindSafe for SvgIconProps
impl Send for SvgIconProps
impl Sync for SvgIconProps
impl Unpin for SvgIconProps
impl UnsafeUnpin for SvgIconProps
impl UnwindSafe for SvgIconProps
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