Skip to main content

PageMap

Trait PageMap 

Source
pub trait PageMap:
    PageMapSlice
    + Index<Range<usize>, Output = Self::Slice>
    + IndexMut<Range<usize>> {
    type Slice: ?Sized + PageMapSlice;

    // Required method
    fn from_bools(iter: impl Iterator<Item = bool>) -> Self;

    // Provided method
    fn from_residency_bytes(bytes: Vec<u8>) -> Self
       where Self: Sized { ... }
}

Required Associated Types§

Required Methods§

Source

fn from_bools(iter: impl Iterator<Item = bool>) -> Self

Provided Methods§

Source

fn from_residency_bytes(bytes: Vec<u8>) -> Self
where Self: Sized,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl PageMap for BitVec

Source§

type Slice = BitSlice

Source§

fn from_bools(iter: impl Iterator<Item = bool>) -> Self

Source§

fn from_residency_bytes(bytes: Vec<u8>) -> Self

Source§

impl PageMap for Vec<bool>

Source§

type Slice = [bool]

Source§

fn from_bools(iter: impl Iterator<Item = bool>) -> Self

Implementors§