Pattern

Trait Pattern 

Source
pub trait Pattern {
    // Required methods
    fn len() -> usize;
    fn matches(container: &Container) -> bool;
}
Expand description

Trait definition of components set

Required Methods§

Source

fn len() -> usize

Source

fn matches(container: &Container) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<A, B, C, D> Pattern for (A, B, C, D)
where A: Component, B: Component, C: Component, D: Component,

Source§

fn len() -> usize

Source§

fn matches(container: &Container) -> bool

Source§

impl<B, C, D> Pattern for (B, C, D)
where B: Component, C: Component, D: Component,

Source§

fn len() -> usize

Source§

fn matches(container: &Container) -> bool

Source§

impl<C, D> Pattern for (C, D)
where C: Component, D: Component,

Source§

fn len() -> usize

Source§

fn matches(container: &Container) -> bool

Source§

impl<D> Pattern for (D,)
where D: Component,

Source§

fn len() -> usize

Source§

fn matches(container: &Container) -> bool

Implementors§