Skip to main content

SelectorAlg

Trait SelectorAlg 

Source
pub trait SelectorAlg {
    type Selector;

    // Required methods
    fn identity(&self) -> Self::Selector;
    fn compose(
        &self,
        first: Self::Selector,
        second: Self::Selector,
    ) -> Self::Selector;
}
Expand description

Describes categorical composition of route selectors.

Required Associated Types§

Source

type Selector

The interpreter’s selector representation.

Required Methods§

Source

fn identity(&self) -> Self::Selector

Returns the selector identity.

Source

fn compose( &self, first: Self::Selector, second: Self::Selector, ) -> Self::Selector

Composes two selectors from left to right.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§