[][src]Struct ddbug_parser::RangeList

pub struct RangeList { /* fields omitted */ }

A list of address ranges.

Implementations

impl RangeList[src]

pub fn list(&self) -> &[Range][src]

The ranges in the list.

pub fn size(&self) -> u64[src]

The total size of the ranges in the list.

pub fn push(&mut self, range: Range)[src]

Append a range, combining with previous range if possible.

pub fn sort(&mut self)[src]

Sort the ranges by beginning address, and combine ranges where possible.

pub fn subtract(&self, other: &Self) -> Self[src]

Remove a list of ranges from the list.

This handles ranges that only partially overlap with existing ranges.

Trait Implementations

impl Clone for RangeList[src]

impl Debug for RangeList[src]

impl Default for RangeList[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.