pub trait FashionSubject {
    type Adept: Ord + PartialEq;
    type AdeptIter<'a>: Iterator<Item = Self::Adept> + 'a
       where Self: 'a;
    type ParentIter<'a>: Iterator<Item = Self::Adept> + 'a
       where Self: 'a;
    type OlderSiblingIter<'a>: Iterator<Item = Self::Adept> + 'a
       where Self: 'a;

    // Required methods
    fn get_all_adepts(&self) -> Self::AdeptIter<'_>;
    fn get_ancestors(&self, adept: &Self::Adept) -> Self::ParentIter<'_>;
    fn get_older_siblings(
        &self,
        adept: &Self::Adept
    ) -> Self::OlderSiblingIter<'_>;
    fn get_element_local_name(&self, adept: &Self::Adept) -> Option<&str>;
    fn get_element_name_space(&self, adept: &Self::Adept) -> Option<&str>;
    fn get_element_class(&self, adept: &Self::Adept) -> Option<&str>;
    fn get_element_id(&self, adept: &Self::Adept) -> Option<&str>;
    fn get_element_attribute(
        &self,
        adept: &Self::Adept,
        name: &str,
        ns: &str
    ) -> Option<&str>;
    fn is_root_element(&self, adept: &Self::Adept) -> bool;
}
Expand description

A subject suitable for selecting adepts by style selectors. See Hatmel for impl

Required Associated Types§

source

type Adept: Ord + PartialEq

source

type AdeptIter<'a>: Iterator<Item = Self::Adept> + 'a where Self: 'a

source

type ParentIter<'a>: Iterator<Item = Self::Adept> + 'a where Self: 'a

source

type OlderSiblingIter<'a>: Iterator<Item = Self::Adept> + 'a where Self: 'a

Required Methods§

source

fn get_all_adepts(&self) -> Self::AdeptIter<'_>

source

fn get_ancestors(&self, adept: &Self::Adept) -> Self::ParentIter<'_>

source

fn get_older_siblings(&self, adept: &Self::Adept) -> Self::OlderSiblingIter<'_>

source

fn get_element_local_name(&self, adept: &Self::Adept) -> Option<&str>

source

fn get_element_name_space(&self, adept: &Self::Adept) -> Option<&str>

source

fn get_element_class(&self, adept: &Self::Adept) -> Option<&str>

source

fn get_element_id(&self, adept: &Self::Adept) -> Option<&str>

source

fn get_element_attribute( &self, adept: &Self::Adept, name: &str, ns: &str ) -> Option<&str>

source

fn is_root_element(&self, adept: &Self::Adept) -> bool

Implementors§