pub struct BitmapEncoder;Expand description
Bitmap boolean encoder.
Implementations§
Source§impl BitmapEncoder
impl BitmapEncoder
Sourcepub fn encode(values: &[bool]) -> Result<Vec<u8>>
pub fn encode(values: &[bool]) -> Result<Vec<u8>>
Encode a sequence of non-nullable boolean values.
§Errors
Returns EncodingError::EmptyInput if values is empty.
Sourcepub fn encode_nullable(values: &[Option<bool>]) -> Result<Vec<u8>>
pub fn encode_nullable(values: &[Option<bool>]) -> Result<Vec<u8>>
Encode a sequence of nullable boolean values.
None values are represented in a separate null bitmap.
§Errors
Returns EncodingError::EmptyInput if values is empty.
Trait Implementations§
Source§impl Clone for BitmapEncoder
impl Clone for BitmapEncoder
Source§fn clone(&self) -> BitmapEncoder
fn clone(&self) -> BitmapEncoder
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 moreimpl Copy for BitmapEncoder
Auto Trait Implementations§
impl Freeze for BitmapEncoder
impl RefUnwindSafe for BitmapEncoder
impl Send for BitmapEncoder
impl Sync for BitmapEncoder
impl Unpin for BitmapEncoder
impl UnsafeUnpin for BitmapEncoder
impl UnwindSafe for BitmapEncoder
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