Enum vortex_roaring::Portable
pub enum Portable {}
Expand description
The Portable
format is meant to be compatible with other roaring bitmap libraries, such as Go or Java.
Note despite the name, it is not fully portable: it depends on native endianness.
It’s defined here: https://github.com/RoaringBitmap/RoaringFormatSpec
Trait Implementations§
§impl Deserializer for Portable
impl Deserializer for Portable
§fn try_deserialize(buffer: &[u8]) -> Option<Bitmap64>
fn try_deserialize(buffer: &[u8]) -> Option<Bitmap64>
Try to deserialize a bitmap from the beginning of the provided buffer Read more
§unsafe fn try_deserialize_unchecked(buffer: &[u8]) -> Bitmap64
unsafe fn try_deserialize_unchecked(buffer: &[u8]) -> Bitmap64
Deserialize a bitmap from the beginning of the provided buffer Read more
§impl Serializer for Portable
impl Serializer for Portable
§fn serialize_into_writer<W>(treemap: &Treemap, dst: W) -> Result<usize, Error>where
W: Write,
fn serialize_into_writer<W>(treemap: &Treemap, dst: W) -> Result<usize, Error>where
W: Write,
Serializes a Treemap to a writer in portable format.
See [Treemap::serialize_into_writer
] for examples.
§fn serialize_into<'a>(treemap: &Treemap, dst: &'a mut Vec<u8>) -> &'a [u8] ⓘ
fn serialize_into<'a>(treemap: &Treemap, dst: &'a mut Vec<u8>) -> &'a [u8] ⓘ
Serializes a Treemap to a slice of bytes in portable format.
See [Treemap::serialize_into
] for examples.
§fn get_serialized_size_in_bytes(treemap: &Treemap) -> usize
fn get_serialized_size_in_bytes(treemap: &Treemap) -> usize
Computes the serialized size in bytes of the Treemap in portable format.
See [Treemap::get_serialized_size_in_bytes
] for examples.
impl Deserializer for Portable
Auto Trait Implementations§
impl Freeze for Portable
impl RefUnwindSafe for Portable
impl Send for Portable
impl Sync for Portable
impl Unpin for Portable
impl UnwindSafe for Portable
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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