pub struct BitmapDecoder;Expand description
Bitmap boolean decoder.
Implementations§
Source§impl BitmapDecoder
impl BitmapDecoder
Sourcepub fn decode(data: &[u8]) -> Result<Vec<bool>>
pub fn decode(data: &[u8]) -> Result<Vec<bool>>
Decode a bitmap-encoded byte buffer back to boolean values.
§Errors
Returns EncodingError::CorruptData if the data is malformed.
Sourcepub fn decode_nullable(data: &[u8]) -> Result<Vec<Option<bool>>>
pub fn decode_nullable(data: &[u8]) -> Result<Vec<Option<bool>>>
Decode a nullable bitmap-encoded byte buffer.
§Errors
Returns EncodingError::CorruptData if the data is malformed.
Trait Implementations§
Source§impl Clone for BitmapDecoder
impl Clone for BitmapDecoder
Source§fn clone(&self) -> BitmapDecoder
fn clone(&self) -> BitmapDecoder
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 BitmapDecoder
Auto Trait Implementations§
impl Freeze for BitmapDecoder
impl RefUnwindSafe for BitmapDecoder
impl Send for BitmapDecoder
impl Sync for BitmapDecoder
impl Unpin for BitmapDecoder
impl UnsafeUnpin for BitmapDecoder
impl UnwindSafe for BitmapDecoder
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