[][src]Struct intspan::IntSpan

pub struct IntSpan { /* fields omitted */ }

Methods

impl IntSpan[src]

pub fn new() -> Self[src]

pub fn from<S>(runlist: S) -> Self where
    S: Into<String>, 
[src]

pub fn get_neg_inf(&self) -> i32[src]

pub fn get_pos_inf(&self) -> i32[src]

pub fn clear(&mut self)[src]

pub fn edge_size(&self) -> usize[src]

pub fn span_size(&self) -> usize[src]

pub fn to_string(&self) -> String[src]

pub fn to_vec(&self) -> Vec<i32>[src]

pub fn ranges(&self) -> Vec<i32>[src]

pub fn contains(&self, n: i32) -> bool[src]

pub fn min(&self) -> i32[src]

pub fn max(&self) -> i32[src]

impl IntSpan[src]

pub fn cardinality(&self) -> i32[src]

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

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

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

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

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

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

impl IntSpan[src]

pub fn add_pair(&mut self, lower: i32, upper: i32)[src]

pub fn add_n(&mut self, n: i32)[src]

pub fn add_ranges(&mut self, ranges: &[i32])[src]

pub fn merge(&mut self, other: &Self)[src]

pub fn add_vec(&mut self, ints: &[i32])[src]

pub fn add_runlist<S>(&mut self, runlist: S) where
    S: Into<String>, 
[src]

pub fn invert(&mut self)[src]

pub fn remove_pair(&mut self, lower: i32, upper: i32)[src]

pub fn remove_n(&mut self, n: i32)[src]

pub fn remove_ranges(&mut self, ranges: &[i32])[src]

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

pub fn remove_vec(&mut self, ints: &[i32])[src]

pub fn remove_runlist<S>(&mut self, runlist: S) where
    S: Into<String>, 
[src]

impl IntSpan[src]

pub fn copy(&self) -> Self[src]

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

pub fn complement(&self) -> Self[src]

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

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

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

impl IntSpan[src]

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

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

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

impl IntSpan[src]

pub fn at(&self, index: i32) -> i32[src]

pub fn index(&self, element: i32) -> i32[src]

impl IntSpan[src]

pub fn cover(&self) -> Self[src]

pub fn holes(&self) -> Self[src]

pub fn inset(&self, n: i32) -> Self[src]

pub fn trim(&self, n: i32) -> Self[src]

pub fn pad(&self, n: i32) -> Self[src]

pub fn excise(&self, min_len: i32) -> Self[src]

pub fn fill(&self, max_len: i32) -> Self[src]

impl IntSpan[src]

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

pub fn runlist(&self) -> String[src]

pub fn elements(&self) -> Vec<i32>[src]

Trait Implementations

impl Default for IntSpan[src]

impl Clone for IntSpan[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Display for IntSpan[src]

Auto Trait Implementations

impl Send for IntSpan

impl Unpin for IntSpan

impl Sync for IntSpan

impl UnwindSafe for IntSpan

impl RefUnwindSafe for IntSpan

Blanket Implementations

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> ToString for T where
    T: Display + ?Sized
[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.

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

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

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