Struct bonsaidb::core::key::DenyNullBytes   
pub struct DenyNullBytes;Expand description
Checks for null bytes when encoding variable length fields in composite keys
and returns an error if any are encountered. This prevents extra processing
when encoding fields, but may introduce incorrect sort ordering (see
CompositeKeyFieldContainsNullByte for more).
Trait Implementations§
§impl Clone for DenyNullBytes
 
impl Clone for DenyNullBytes
§fn clone(&self) -> DenyNullBytes
 
fn clone(&self) -> DenyNullBytes
Returns a copy 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 more§impl CompositeKeyNullHandler for DenyNullBytes
 
impl CompositeKeyNullHandler for DenyNullBytes
§fn handle_nulls(
    &self,
    encoded: &mut Cow<'_, [u8]>
) -> Result<(), CompositeKeyError>
 
fn handle_nulls( &self, encoded: &mut Cow<'_, [u8]> ) -> Result<(), CompositeKeyError>
Process the null bytes in 
field_bytes, if needed.§fn decode_nulls_if_needed<'b, 'e>(
    &self,
    encoded: ByteSource<'b, 'e>
) -> Result<ByteSource<'b, 'e>, CompositeKeyError>
 
fn decode_nulls_if_needed<'b, 'e>( &self, encoded: ByteSource<'b, 'e> ) -> Result<ByteSource<'b, 'e>, CompositeKeyError>
Decode the null bytes in 
encoded, if needed.§impl Debug for DenyNullBytes
 
impl Debug for DenyNullBytes
§impl Default for DenyNullBytes
 
impl Default for DenyNullBytes
§fn default() -> DenyNullBytes
 
fn default() -> DenyNullBytes
Returns the “default value” for a type. Read more
impl Copy for DenyNullBytes
Auto Trait Implementations§
impl RefUnwindSafe for DenyNullBytes
impl Send for DenyNullBytes
impl Sync for DenyNullBytes
impl Unpin for DenyNullBytes
impl UnwindSafe for DenyNullBytes
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
    T: 'a,
 
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
    T: 'a,
 
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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