pub enum Operator {
None,
Constant,
Default,
Copy,
Increment,
Delta,
Tail,
}Expand description
FAST field operator types.
Variants§
None
No operator - value is always present in stream.
Constant
Constant - value is never in stream, always uses initial value.
Default
Default - if absent, use initial value.
Copy
Copy - if absent, use previous value from dictionary.
Increment
Increment - if absent, increment previous value by 1.
Delta
Delta - value in stream is delta from previous value.
Tail
Tail - value in stream replaces tail of previous value.
Implementations§
Source§impl Operator
impl Operator
Sourcepub const fn uses_dictionary(&self) -> bool
pub const fn uses_dictionary(&self) -> bool
Returns true if this operator uses the dictionary.
Sourcepub const fn requires_pmap(&self) -> bool
pub const fn requires_pmap(&self) -> bool
Returns true if this operator requires a presence map bit.
Sourcepub const fn can_be_absent(&self) -> bool
pub const fn can_be_absent(&self) -> bool
Returns true if the value can be absent from the stream.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Operator
impl<'de> Deserialize<'de> for Operator
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Operator, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Operator, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Operator
impl Serialize for Operator
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for Operator
impl Eq for Operator
impl StructuralPartialEq for Operator
Auto Trait Implementations§
impl Freeze for Operator
impl RefUnwindSafe for Operator
impl Send for Operator
impl Sync for Operator
impl Unpin for Operator
impl UnwindSafe for Operator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more