[−][src]Struct intspan::IntSpan
Methods
impl IntSpan
[src]
pub fn new() -> Self
[src]
pub fn from<S>(runlist: S) -> Self where
S: Into<String>,
[src]
S: Into<String>,
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]
S: Into<String>,
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]
S: Into<String>,
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]
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(&self) -> 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]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,