Enum html_bindgen::parse::ParsedRelationship
source · pub enum ParsedRelationship {
Element(String),
Category(ParsedCategory),
}
Expand description
Each element in HTML has zero or more relationships to other elements.
This also holds the custom “Element” relationship, which is used to represent specific elements.
Variants§
Element(String)
Category(ParsedCategory)
Trait Implementations§
source§impl Clone for ParsedRelationship
impl Clone for ParsedRelationship
source§fn clone(&self) -> ParsedRelationship
fn clone(&self) -> ParsedRelationship
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 Debug for ParsedRelationship
impl Debug for ParsedRelationship
source§impl<'de> Deserialize<'de> for ParsedRelationship
impl<'de> Deserialize<'de> for ParsedRelationship
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<ParsedCategory> for ParsedRelationship
impl From<ParsedCategory> for ParsedRelationship
source§fn from(value: ParsedCategory) -> Self
fn from(value: ParsedCategory) -> Self
Converts to this type from the input type.
source§impl Hash for ParsedRelationship
impl Hash for ParsedRelationship
source§impl Ord for ParsedRelationship
impl Ord for ParsedRelationship
source§fn cmp(&self, other: &ParsedRelationship) -> Ordering
fn cmp(&self, other: &ParsedRelationship) -> 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 PartialEq<ParsedRelationship> for ParsedRelationship
impl PartialEq<ParsedRelationship> for ParsedRelationship
source§fn eq(&self, other: &ParsedRelationship) -> bool
fn eq(&self, other: &ParsedRelationship) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ParsedRelationship> for ParsedRelationship
impl PartialOrd<ParsedRelationship> for ParsedRelationship
source§fn partial_cmp(&self, other: &ParsedRelationship) -> Option<Ordering>
fn partial_cmp(&self, other: &ParsedRelationship) -> 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 moresource§impl Serialize for ParsedRelationship
impl Serialize for ParsedRelationship
impl Eq for ParsedRelationship
impl StructuralEq for ParsedRelationship
impl StructuralPartialEq for ParsedRelationship
Auto Trait Implementations§
impl RefUnwindSafe for ParsedRelationship
impl Send for ParsedRelationship
impl Sync for ParsedRelationship
impl Unpin for ParsedRelationship
impl UnwindSafe for ParsedRelationship
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