pub struct BoRoaringBitmapCodec;
Implementations§
Source§impl BoRoaringBitmapCodec
impl BoRoaringBitmapCodec
pub fn serialize_into(bitmap: &RoaringBitmap, out: &mut Vec<u8>)
Trait Implementations§
Source§impl BytesDecode<'_> for BoRoaringBitmapCodec
impl BytesDecode<'_> for BoRoaringBitmapCodec
Source§type DItem = RoaringBitmap
type DItem = RoaringBitmap
The type to decode.
Source§fn bytes_decode(bytes: &[u8]) -> Result<Self::DItem, BoxedError>
fn bytes_decode(bytes: &[u8]) -> Result<Self::DItem, BoxedError>
Decode the given bytes as
DItem
.Source§impl BytesDecodeOwned for BoRoaringBitmapCodec
impl BytesDecodeOwned for BoRoaringBitmapCodec
type DItem = RoaringBitmap
fn bytes_decode_owned(bytes: &[u8]) -> Result<Self::DItem, BoxedError>
Source§impl BytesEncode<'_> for BoRoaringBitmapCodec
impl BytesEncode<'_> for BoRoaringBitmapCodec
Source§type EItem = RoaringBitmap
type EItem = RoaringBitmap
The type to encode.
Source§fn bytes_encode(item: &Self::EItem) -> Result<Cow<'_, [u8]>, BoxedError>
fn bytes_encode(item: &Self::EItem) -> Result<Cow<'_, [u8]>, BoxedError>
Encode the given item as bytes.
Auto Trait Implementations§
impl Freeze for BoRoaringBitmapCodec
impl RefUnwindSafe for BoRoaringBitmapCodec
impl Send for BoRoaringBitmapCodec
impl Sync for BoRoaringBitmapCodec
impl Unpin for BoRoaringBitmapCodec
impl UnwindSafe for BoRoaringBitmapCodec
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more