pub enum PropertyEncoder {
Scalar(ScalarEncoder),
SharedDict(SharedDictEncoder),
}Expand description
Instruction for how to encode a single parsed property when batch-encoding a
Vec<ParsedProperty>.
Variants§
Scalar(ScalarEncoder)
How to encode a scalar property
How to encode a shared dictionary property (multiple string sub-properties)
Trait Implementations§
Source§impl Clone for PropertyEncoder
impl Clone for PropertyEncoder
Source§fn clone(&self) -> PropertyEncoder
fn clone(&self) -> PropertyEncoder
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 PropertyEncoder
impl Debug for PropertyEncoder
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§fn from(encoder: SharedDictEncoder) -> Self
fn from(encoder: SharedDictEncoder) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PropertyEncoder
impl PartialEq for PropertyEncoder
impl Eq for PropertyEncoder
impl StructuralPartialEq for PropertyEncoder
Auto Trait Implementations§
impl Freeze for PropertyEncoder
impl RefUnwindSafe for PropertyEncoder
impl Send for PropertyEncoder
impl Sync for PropertyEncoder
impl Unpin for PropertyEncoder
impl UnsafeUnpin for PropertyEncoder
impl UnwindSafe for PropertyEncoder
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