pub trait ViewDeserializer {
    // Required method
    unsafe fn deserialize_view(data: &[u8]) -> BitmapView<'_>;
}
Expand description

Trait for different formats of bitmap deserialization into a view without copying

Required Methods§

source

unsafe fn deserialize_view(data: &[u8]) -> BitmapView<'_>

Create a bitmap view using the passed data

Safety
  • data must be the result of serializing a roaring bitmap in this format.
  • Its beginning must be aligned properly for this format.
  • data.len() must be equal exactly to the size of the serialized bitmap.

See BitmapView::deserialize for examples.

Object Safety§

This trait is not object safe.

Implementors§