[][src]Enum gf::support::bitpat::BitPatTableStrategy

pub enum BitPatTableStrategy {
    Greedy,
    GreedySparse,
    Linear,
}

Strategy used to build a bit pattern table.

Variants

Greedy

The greedy strategy.

GreedySparse

The greedy strategy, followed by a BitPatTableNode::into_sparse transformation.

Linear

The linear strategy.

Implementations

impl BitPatTableStrategy[src]

pub fn build_table<T>(self, patterns: Vec<(BitPat, T)>) -> BitPatTable<T>[src]

Build a bit pattern table from a number of patterns.

Trait Implementations

impl Clone for BitPatTableStrategy[src]

impl Copy for BitPatTableStrategy[src]

impl Debug for BitPatTableStrategy[src]

impl Default for BitPatTableStrategy[src]

impl Eq for BitPatTableStrategy[src]

impl Hash for BitPatTableStrategy[src]

impl Ord for BitPatTableStrategy[src]

impl PartialEq<BitPatTableStrategy> for BitPatTableStrategy[src]

impl PartialOrd<BitPatTableStrategy> for BitPatTableStrategy[src]

impl StructuralEq for BitPatTableStrategy[src]

impl StructuralPartialEq for BitPatTableStrategy[src]

Auto Trait Implementations

impl RefUnwindSafe for BitPatTableStrategy

impl Send for BitPatTableStrategy

impl Sync for BitPatTableStrategy

impl Unpin for BitPatTableStrategy

impl UnwindSafe for BitPatTableStrategy

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.