pub struct ScalarEncoder {
pub presence: PresenceStream,
pub value: ScalarValueEncoder,
}Expand description
How to encode properties
Fields§
§presence: PresenceStream§value: ScalarValueEncoderImplementations§
Source§impl ScalarEncoder
impl ScalarEncoder
pub fn str(presence: PresenceStream, string_lengths: IntEncoder) -> Self
Sourcepub fn int(presence: PresenceStream, enc: IntEncoder) -> Self
pub fn int(presence: PresenceStream, enc: IntEncoder) -> Self
Create a property encoder with integer encoding
Sourcepub fn str_fsst(
presence: PresenceStream,
symbol_lengths: IntEncoder,
dict_lengths: IntEncoder,
) -> Self
pub fn str_fsst( presence: PresenceStream, symbol_lengths: IntEncoder, dict_lengths: IntEncoder, ) -> Self
Create a property encoder with FSST string encoding
Sourcepub fn bool(presence: PresenceStream) -> Self
pub fn bool(presence: PresenceStream) -> Self
Create a property encoder for boolean values
Sourcepub fn float(presence: PresenceStream) -> Self
pub fn float(presence: PresenceStream) -> Self
Create a property encoder for float values
Trait Implementations§
Source§impl Clone for ScalarEncoder
impl Clone for ScalarEncoder
Source§fn clone(&self) -> ScalarEncoder
fn clone(&self) -> ScalarEncoder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScalarEncoder
impl Debug for ScalarEncoder
Source§impl From<ScalarEncoder> for PropertyEncoder
FIXME: uncertain why we need this, delete?
impl From<ScalarEncoder> for PropertyEncoder
FIXME: uncertain why we need this, delete?
Source§fn from(encoder: ScalarEncoder) -> Self
fn from(encoder: ScalarEncoder) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ScalarEncoder
impl PartialEq for ScalarEncoder
impl Copy for ScalarEncoder
impl Eq for ScalarEncoder
impl StructuralPartialEq for ScalarEncoder
Auto Trait Implementations§
impl Freeze for ScalarEncoder
impl RefUnwindSafe for ScalarEncoder
impl Send for ScalarEncoder
impl Sync for ScalarEncoder
impl Unpin for ScalarEncoder
impl UnsafeUnpin for ScalarEncoder
impl UnwindSafe for ScalarEncoder
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