Enum html_tags::AttributeValue
source · pub enum AttributeValue<'life> {
Str(&'life str),
Bool(bool),
}
Variants§
Trait Implementations§
source§impl<'life> Clone for AttributeValue<'life>
impl<'life> Clone for AttributeValue<'life>
source§fn clone(&self) -> AttributeValue<'life>
fn clone(&self) -> AttributeValue<'life>
Returns a copy 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<'life> Debug for AttributeValue<'life>
impl<'life> Debug for AttributeValue<'life>
source§impl<'life> From<&'life str> for AttributeValue<'life>
impl<'life> From<&'life str> for AttributeValue<'life>
source§impl<'life> From<bool> for AttributeValue<'life>
impl<'life> From<bool> for AttributeValue<'life>
source§impl<'life> Hash for AttributeValue<'life>
impl<'life> Hash for AttributeValue<'life>
source§impl<'life> Ord for AttributeValue<'life>
impl<'life> Ord for AttributeValue<'life>
source§fn cmp(&self, other: &AttributeValue<'life>) -> Ordering
fn cmp(&self, other: &AttributeValue<'life>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'life> PartialEq<AttributeValue<'life>> for AttributeValue<'life>
impl<'life> PartialEq<AttributeValue<'life>> for AttributeValue<'life>
source§fn eq(&self, other: &AttributeValue<'life>) -> bool
fn eq(&self, other: &AttributeValue<'life>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'life> PartialOrd<AttributeValue<'life>> for AttributeValue<'life>
impl<'life> PartialOrd<AttributeValue<'life>> for AttributeValue<'life>
source§fn partial_cmp(&self, other: &AttributeValue<'life>) -> Option<Ordering>
fn partial_cmp(&self, other: &AttributeValue<'life>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more