[][src]Struct savory_elements::view::icon::html::Html

pub struct Html {
    pub id: Option<Id>,
    pub styler: Option<Styler<Self, Style>>,
    pub theme: Theme,
    pub view_box: Option<ViewBox>,
    pub html: Cow<'static, str>,
}

Fields

id: Option<Id>styler: Option<Styler<Self, Style>>theme: Themeview_box: Option<ViewBox>html: Cow<'static, str>

Implementations

impl Html[src]

pub fn id(self, value: impl Into<Id>) -> Self[src]

pub fn and_styler(
    self,
    set_value: impl Fn(Styler<Self, Style>) -> Styler<Self, Style>
) -> Self where
    Styler<Self, Style>: Default
[src]

pub fn and_theme(self, set_value: impl Fn(Theme) -> Theme) -> Self[src]

pub fn view_box(self, value: impl Into<ViewBox>) -> Self[src]

pub fn html(self, value: impl Into<Cow<'static, str>>) -> Self[src]

impl Html[src]

pub fn new(html: impl Into<Cow<'static, str>>) -> Self[src]

Trait Implementations

impl Clone for Html[src]

impl<PMsg> From<Html> for Icon<PMsg>[src]

impl Stylable for Html[src]

type Style = Style

Style used by the view

type Styler = Styler<Self, Style>

Styler that generate Style according to the view data

impl<Msg> StyledView<Node<Msg>> for Html[src]

impl<Msg> View<Node<Msg>> for Html[src]

Auto Trait Implementations

impl !RefUnwindSafe for Html

impl !Send for Html

impl !Sync for Html

impl Unpin for Html

impl !UnwindSafe for Html

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<'a, Msg, T> NodeModifier<'a, Msg> for T where
    T: View<Node<Msg>>, 
[src]

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,