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 for ParsedRelationship
impl PartialEq for ParsedRelationship
Source§impl PartialOrd for ParsedRelationship
impl PartialOrd for ParsedRelationship
Source§impl Serialize for ParsedRelationship
impl Serialize for ParsedRelationship
impl Eq for ParsedRelationship
impl StructuralPartialEq for ParsedRelationship
Auto Trait Implementations§
impl Freeze for ParsedRelationship
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