Type Alias Selector

Source
pub type Selector = SelectorDef<Hop>;

Aliased Type§

pub struct Selector {
    pub hops: Vec<HopDef<PointSegSelector, KindSelectorDef<Pattern<BaseKind>, Pattern<Option<CamelCase>>, SpecificSelectorDef<Pattern<Domain>, Pattern<Domain>, Pattern<SkewerCase>, Pattern<SkewerCase>, VersionReq>>>>,
}

Fields§

§hops: Vec<HopDef<PointSegSelector, KindSelectorDef<Pattern<BaseKind>, Pattern<Option<CamelCase>>, SpecificSelectorDef<Pattern<Domain>, Pattern<Domain>, Pattern<SkewerCase>, Pattern<SkewerCase>, VersionReq>>>>

Implementations§

Source§

impl Selector

Source

pub fn matches_root(&self) -> bool

Source

pub fn is_root(&self) -> bool

Source

pub fn is_final(&self) -> bool

Source

pub fn query_root(&self) -> Point

Source

pub fn sub_select_hops(&self) -> Vec<Hop>

Source

pub fn matches(&self, hierarchy: &PointHierarchy) -> bool

Trait Implementations§

Source§

impl FromStr for Selector

Source§

type Err = SpaceErr

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl ToResolved<SelectorDef<HopDef<PointSegSelector, KindSelectorDef<Pattern<BaseKind>, Pattern<Option<CamelCase>>, SpecificSelectorDef<Pattern<Domain>, Pattern<Domain>, Pattern<SkewerCase>, Pattern<SkewerCase>, VersionReq>>>>> for Selector

Source§

impl ToString for Selector

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more