[][src]Struct sauron_vdom::Attribute

pub struct Attribute<ATT, EVENT, MSG> where
    ATT: Clone
{ pub name: ATT, pub value: AttribValue<EVENT, MSG>, pub namespace: Option<&'static str>, }

Fields

name: ATTvalue: AttribValue<EVENT, MSG>namespace: Option<&'static str>

Methods

impl<ATT, EVENT, MSG> Attribute<ATT, EVENT, MSG> where
    ATT: Clone
[src]

pub fn from_callback(name: ATT, cb: Callback<EVENT, MSG>) -> Self[src]

pub fn from_value(name: ATT, value: Value) -> Self[src]

impl<ATT, EVENT, MSG> Attribute<ATT, EVENT, MSG> where
    MSG: 'static,
    EVENT: 'static,
    ATT: PartialEq + Ord + ToString + Clone
[src]

pub fn is_event(&self) -> bool[src]

pub fn reform<F, EVENT2>(self, func: F) -> Attribute<ATT, EVENT2, MSG> where
    F: Fn(EVENT2) -> EVENT + 'static,
    EVENT2: 'static, 
[src]

pub fn get_value(&self) -> Option<&Value>[src]

pub fn get_callback(&self) -> Option<&Callback<EVENT, MSG>>[src]

pub fn take_callback(self) -> Option<Callback<EVENT, MSG>>[src]

pub fn to_pretty_string(&self) -> String where
    ATT: ToString
[src]

Trait Implementations

impl<ATT: Clone, EVENT: Clone, MSG: Clone> Clone for Attribute<ATT, EVENT, MSG> where
    ATT: Clone
[src]

impl<ATT: Debug, EVENT: Debug, MSG: Debug> Debug for Attribute<ATT, EVENT, MSG> where
    ATT: Clone
[src]

impl<ATT: PartialEq, EVENT: PartialEq, MSG: PartialEq> PartialEq<Attribute<ATT, EVENT, MSG>> for Attribute<ATT, EVENT, MSG> where
    ATT: Clone
[src]

impl<ATT, EVENT, MSG> StructuralPartialEq for Attribute<ATT, EVENT, MSG> where
    ATT: Clone
[src]

Auto Trait Implementations

impl<ATT, EVENT, MSG> !RefUnwindSafe for Attribute<ATT, EVENT, MSG>

impl<ATT, EVENT, MSG> !Send for Attribute<ATT, EVENT, MSG>

impl<ATT, EVENT, MSG> !Sync for Attribute<ATT, EVENT, MSG>

impl<ATT, EVENT, MSG> Unpin for Attribute<ATT, EVENT, MSG> where
    ATT: Unpin

impl<ATT, EVENT, MSG> !UnwindSafe for Attribute<ATT, EVENT, MSG>

Blanket Implementations

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<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.