Struct EncodeInfo
pub struct EncodeInfo {
pub len: usize,
pub n_predicted: u8,
pub n_included: u8,
pub n_refresh: u8,
pub n_reset: u8,
pub field_count: usize,
pub bound_applies_bits: u64,
}Expand description
Statistics and saturation flags returned by a successful commit.
Fields§
§len: usizeNumber of bytes written.
n_predicted: u8Number of predicted (omitted) fields.
n_included: u8Number of included fields.
n_refresh: u8Number of refresh fields.
n_reset: u8Number of reset fields.
field_count: usizeNumber of schema fields represented by the bitset.
bound_applies_bits: u64Fixed u64 bitset: one flag per schema field, false when saturated.
Implementations§
§impl EncodeInfo
impl EncodeInfo
pub fn bound_applies(&self, index: usize) -> bool
pub fn bound_applies(&self, index: usize) -> bool
Whether the field’s configured bound applied.
pub fn bound_applies_vec(&self) -> Vec<bool>
pub fn bound_applies_vec(&self) -> Vec<bool>
Allocator-backed copy of the bound flags for convenience/reporting.
Trait Implementations§
§impl Clone for EncodeInfo
impl Clone for EncodeInfo
§fn clone(&self) -> EncodeInfo
fn clone(&self) -> EncodeInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for EncodeInfo
impl Debug for EncodeInfo
impl Eq for EncodeInfo
§impl PartialEq for EncodeInfo
impl PartialEq for EncodeInfo
impl StructuralPartialEq for EncodeInfo
Auto Trait Implementations§
impl Freeze for EncodeInfo
impl RefUnwindSafe for EncodeInfo
impl Send for EncodeInfo
impl Sync for EncodeInfo
impl Unpin for EncodeInfo
impl UnsafeUnpin for EncodeInfo
impl UnwindSafe for EncodeInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.