Trait fefast::FieldOperator [−][src]
pub trait FieldOperator { type Item: Codec; fn previous_value(&self) -> Option<&Self::Item>; fn replace(&mut self, new_value: Self::Item); fn can_omit(&self, value: &Self::Item) -> bool; fn reset(&mut self); }
Expand description
Field encoding operator in FAST terminology.
Associated Types
Required methods
fn previous_value(&self) -> Option<&Self::Item>
fn previous_value(&self) -> Option<&Self::Item>
See section 6.3.1 of FAST 1.1 documentation.
Replace the previous value (or set it if unset) with a new one.
Determine whether the specified value can be omitted from the final payload. This behavior is custom to every field operator.