css_select/selector

Types

pub type AttributeSelector {
  Id(String)
  Class(String)
  AttributeExists(String)
  AttributeEqual(String, String)
  AttributePrefix(String, String)
  AttributeSuffix(String, String)
  AttributeIncludes(String, String)
  Psuedo(String)
}

Constructors

  • Id(String)
  • Class(String)
  • AttributeExists(String)
  • AttributeEqual(String, String)
  • AttributePrefix(String, String)
  • AttributeSuffix(String, String)
  • AttributeIncludes(String, String)
  • Psuedo(String)
pub type Selector {
  ElementSelector(TagSelector, List(AttributeSelector))
}

Constructors

  • ElementSelector(TagSelector, List(AttributeSelector))
pub type TagSelector {
  Any
  Tag(String)
}

Constructors

  • Any
  • Tag(String)

Functions

pub fn to_string(selector: Selector) -> String
Search Document