Struct sparse_bitfield::Bitfield [] [src]

pub struct Bitfield {
    pub page_size: usize,
    pub pages: Pager,
    // some fields omitted
}

Bitfield instance.

Fields

The page_size of the Page instances stored in memory-pager.

A memory-pager instance.

Methods

impl Bitfield
[src]

[src]

Create a new instance.

[src]

Set a byte to true or false. Returns a boolean indicating if the value was changed.

[src]

Get the value of a bit.

[src]

Get the amount of bits stored. Includes sparse spaces.

[src]

Check if length is zero.

Trait Implementations

impl Debug for Bitfield
[src]

[src]

Formats the value using the given formatter. Read more

impl Default for Bitfield
[src]

Create a new instance with a page_size of 1kb.

[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Bitfield

impl Sync for Bitfield