Trait MatchEncoder
pub trait MatchEncoder<'a>: Default + 'a {
type P: PredicateInner + 'a;
// Required methods
fn gc(&self) -> usize;
fn one(&'a self) -> Predicate<Self::P>;
fn zero(&'a self) -> Predicate<Self::P>;
fn _encode<U>(
&'a self,
value: U,
mask: U,
from: usize,
to: usize,
) -> Predicate<Self::P>
where U: Unsigned;
// Provided methods
fn encode_match<U>(
&'a self,
fm: FieldMatch<'_, U>,
) -> (Predicate<Self::P>, Vec<MaskedValue>)
where U: Unsigned { ... }
fn encode_match_wo_mv<U>(
&'a self,
fm: FieldMatch<'_, U>,
) -> Predicate<Self::P>
where U: Unsigned { ... }
fn encode_matches<'b, U, II>(
&'a self,
fms: II,
) -> (Predicate<Self::P>, Vec<MaskedValue>)
where U: Unsigned,
II: IntoIterator<Item = &'b FieldMatch<'b, U>> { ... }
}Expand description
Parse field values and encodes them into a predicate.
Required Associated Types§
type P: PredicateInner + 'a
Required Methods§
fn gc(&self) -> usize
fn one(&'a self) -> Predicate<Self::P>
fn zero(&'a self) -> Predicate<Self::P>
fn _encode<U>(
&'a self,
value: U,
mask: U,
from: usize,
to: usize,
) -> Predicate<Self::P>where
U: Unsigned,
Provided Methods§
fn encode_match<U>(
&'a self,
fm: FieldMatch<'_, U>,
) -> (Predicate<Self::P>, Vec<MaskedValue>)where
U: Unsigned,
fn encode_match_wo_mv<U>(&'a self, fm: FieldMatch<'_, U>) -> Predicate<Self::P>where
U: Unsigned,
fn encode_matches<'b, U, II>(
&'a self,
fms: II,
) -> (Predicate<Self::P>, Vec<MaskedValue>)where
U: Unsigned,
II: IntoIterator<Item = &'b FieldMatch<'b, U>>,
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.