[−][src]Struct mt_dom::Attribute
These are the plain attributes of an element
Implementations
impl<NS, ATT, VAL, EVENT, MSG> Attribute<NS, ATT, VAL, EVENT, MSG>
[src]
pub fn new(namespace: Option<NS>, name: ATT, value: VAL) -> Self
[src]
create a plain attribute with namespace
pub fn name(&self) -> &ATT
[src]
return the name of this attribute
pub fn value(&self) -> &AttValue<VAL, EVENT, MSG>
[src]
return the value of this attribute
pub fn namespace(&self) -> Option<&NS>
[src]
return the namespace of this attribute
impl<NS, ATT, VAL, EVENT, MSG> Attribute<NS, ATT, VAL, EVENT, MSG> where
EVENT: 'static,
MSG: 'static,
[src]
EVENT: 'static,
MSG: 'static,
pub fn map_callback<MSG2>(
self,
cb: Callback<MSG, MSG2>
) -> Attribute<NS, ATT, VAL, EVENT, MSG2> where
MSG2: 'static,
[src]
self,
cb: Callback<MSG, MSG2>
) -> Attribute<NS, ATT, VAL, EVENT, MSG2> where
MSG2: 'static,
transform the callback of this attribute
pub fn get_callback(&self) -> Option<&Callback<EVENT, MSG>>
[src]
return if it is a callback
Trait Implementations
impl<NS: Clone, ATT: Clone, VAL: Clone, EVENT: Clone, MSG: Clone> Clone for Attribute<NS, ATT, VAL, EVENT, MSG>
[src]
fn clone(&self) -> Attribute<NS, ATT, VAL, EVENT, MSG>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<NS: Debug, ATT: Debug, VAL: Debug, EVENT: Debug, MSG: Debug> Debug for Attribute<NS, ATT, VAL, EVENT, MSG>
[src]
impl<NS: PartialEq, ATT: PartialEq, VAL: PartialEq, EVENT: PartialEq, MSG: PartialEq> PartialEq<Attribute<NS, ATT, VAL, EVENT, MSG>> for Attribute<NS, ATT, VAL, EVENT, MSG>
[src]
fn eq(&self, other: &Attribute<NS, ATT, VAL, EVENT, MSG>) -> bool
[src]
fn ne(&self, other: &Attribute<NS, ATT, VAL, EVENT, MSG>) -> bool
[src]
impl<NS, ATT, VAL, EVENT, MSG> StructuralPartialEq for Attribute<NS, ATT, VAL, EVENT, MSG>
[src]
Auto Trait Implementations
impl<NS, ATT, VAL, EVENT, MSG> !RefUnwindSafe for Attribute<NS, ATT, VAL, EVENT, MSG>
impl<NS, ATT, VAL, EVENT, MSG> !Send for Attribute<NS, ATT, VAL, EVENT, MSG>
impl<NS, ATT, VAL, EVENT, MSG> !Sync for Attribute<NS, ATT, VAL, EVENT, MSG>
impl<NS, ATT, VAL, EVENT, MSG> Unpin for Attribute<NS, ATT, VAL, EVENT, MSG> where
ATT: Unpin,
NS: Unpin,
VAL: Unpin,
ATT: Unpin,
NS: Unpin,
VAL: Unpin,
impl<NS, ATT, VAL, EVENT, MSG> !UnwindSafe for Attribute<NS, ATT, VAL, EVENT, MSG>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,