Struct free_ranges::FreeRanges [] [src]

pub struct FreeRanges { /* fields omitted */ }

Methods

impl FreeRanges
[src]

[src]

Starts empty with no ranges free

[src]

Initializes FreeRanges with 0...usize::MAX already free

[src]

Initializes FreeRanges with the passed range already marked as free

[src]

Iterator over all of the contiguous free ranges

[src]

Iterator over all of the ranges starting at a specific index. It will include the first range that contains the index if it exists.

[src]

Iterator over all of the ranges ending at a specific index. It will include the last range that contains the index if it exists.

[src]

Marks a specific index as free

[src]

[src]

Marks a free index as used. Returns false if the index was not free

[src]

Returns the first free value if one exists

[src]

Marks the first index in the free list as used and returns it

[src]

Returns the first free value if one exists

[src]

Marks the first index in the free list as used and returns it

[src]

[src]

[src]

Trait Implementations

impl Debug for FreeRanges
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for FreeRanges
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for FreeRanges
[src]

[src]

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

Auto Trait Implementations

impl Send for FreeRanges

impl Sync for FreeRanges