[][src]Struct basic_allocator::blocklist::Validity

pub struct Validity {
    pub overlaps: usize,
    pub adjacents: usize,
    pub out_of_orders: usize,
}

Validity contains a representation of all invalid states found in a BlockList.

Fields

overlaps: usize

Number of blocks overlapping other blocks.

This likely indicates corruption.

If there are also out of order blocks, this might undercount.

adjacents: usize

Number of blocks that are directly adjacent to each other, and not merged. This shouldn't happen, but isn't totally corrupt.

out_of_orders: usize

Number of blocks that do not have an address less than their next.

This shouldn't occur.

Implementations

impl Validity[src]

pub fn is_valid(&self) -> bool[src]

Returns a boolean - a simple check if all cases are 0

Trait Implementations

impl Debug for Validity[src]

impl Default for Validity[src]

impl From<Validity> for bool[src]

Auto Trait Implementations

impl Send for Validity

impl Sync for Validity

impl Unpin for Validity

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.