[][src]Struct analytic::set::ordered_integer_set::ContiguousIntegerSet

pub struct ContiguousIntegerSet<E: Integer + Copy> { /* fields omitted */ }

represents the set of integers in [start, end]

Methods

impl<E: Integer + Copy> ContiguousIntegerSet<E>[src]

pub fn new(start: E, end: E) -> ContiguousIntegerSet<E>[src]

pub fn get_start_and_end(&self) -> (E, E)[src]

pub fn is_subset_of(&self, other: &ContiguousIntegerSet<E>) -> bool[src]

pub fn slice<'a, I: Slicing<&'a ContiguousIntegerSet<E>, Option<ContiguousIntegerSet<E>>>>(
    &'a self,
    slicer: I
) -> Option<ContiguousIntegerSet<E>>
[src]

Trait Implementations

impl<E: Integer + Copy> Interval for ContiguousIntegerSet<E>[src]

type Element = E

impl<E: Integer + Copy> Coalesce<ContiguousIntegerSet<E>> for ContiguousIntegerSet<E>[src]

returns an interval if only if the two intervals can be merged into a single non-empty interval. An empty interval can be merged with any other non-empty interval

impl<E: Integer + Copy> Coalesce<E> for ContiguousIntegerSet<E>[src]

impl<E: Integer + Copy + ToPrimitive> CoalesceIntervals<ContiguousIntegerSet<E>, E> for OrderedIntegerSet<E>[src]

impl<'_, E: Integer + Copy + ToPrimitive> Sample<'_, ContiguousIntegerSetIter<E>, E, OrderedIntegerSet<E>> for ContiguousIntegerSet<E>[src]

fn sample_subset_without_replacement<'s: 'a>(
    &'s self,
    size: usize
) -> Result<O, String>
[src]

samples size elements without replacement size: the number of samples to be drawn returns Err if size is larger than the population size Read more

impl<'_, E: Integer + Copy + FromPrimitive + ToPrimitive> Slicing<&'_ ContiguousIntegerSet<E>, Option<ContiguousIntegerSet<E>>> for Range<usize>[src]

impl<E: Integer + Copy> Set<E, Option<ContiguousIntegerSet<E>>> for ContiguousIntegerSet<E>[src]

impl<E: Integer + Copy + ToPrimitive> Finite for ContiguousIntegerSet<E>[src]

impl<E: Integer + Copy + ToPrimitive> Refineable<Vec<ContiguousIntegerSet<E>>> for ContiguousIntegerSet<E>[src]

impl<'_, E: Integer + Copy> ToIterator<'_, ContiguousIntegerSetIter<E>, E> for ContiguousIntegerSet<E>[src]

impl<E: Integer + Copy> From<ContiguousIntegerSet<E>> for ContiguousIntegerSetIter<E>[src]

impl<E: Clone + Integer + Copy> Clone for ContiguousIntegerSet<E>[src]

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

Performs copy-assignment from source. Read more

impl<E: PartialEq + Integer + Copy> PartialEq<ContiguousIntegerSet<E>> for ContiguousIntegerSet<E>[src]

impl<E: Eq + Integer + Copy> Eq for ContiguousIntegerSet<E>[src]

impl<E: Copy + Integer> Copy for ContiguousIntegerSet<E>[src]

impl<E: Debug + Integer + Copy> Debug for ContiguousIntegerSet<E>[src]

impl<'_, E: Integer + Copy + ToPrimitive> Sub<&'_ ContiguousIntegerSet<E>> for ContiguousIntegerSet<E>[src]

type Output = OrderedIntegerSet<E>

The resulting type after applying the - operator.

impl<E: Integer + Copy + ToPrimitive> Sub<ContiguousIntegerSet<E>> for ContiguousIntegerSet<E>[src]

type Output = OrderedIntegerSet<E>

The resulting type after applying the - operator.

impl<'_, E: Integer + Copy + ToPrimitive> Sub<&'_ ContiguousIntegerSet<E>> for OrderedIntegerSet<E>[src]

type Output = Self

The resulting type after applying the - operator.

impl<E: Integer + Copy + ToPrimitive> Sub<ContiguousIntegerSet<E>> for OrderedIntegerSet<E>[src]

type Output = Self

The resulting type after applying the - operator.

impl<'_, E: Integer + Copy + ToPrimitive> Sub<&'_ OrderedIntegerSet<E>> for ContiguousIntegerSet<E>[src]

type Output = OrderedIntegerSet<E>

The resulting type after applying the - operator.

impl<E: Integer + Copy + ToPrimitive> Sub<OrderedIntegerSet<E>> for ContiguousIntegerSet<E>[src]

type Output = OrderedIntegerSet<E>

The resulting type after applying the - operator.

impl<'_, E: Integer + Copy + ToPrimitive> SubAssign<&'_ ContiguousIntegerSet<E>> for OrderedIntegerSet<E>[src]

impl<E: Integer + Copy + ToPrimitive> SubAssign<ContiguousIntegerSet<E>> for OrderedIntegerSet<E>[src]

impl<E: Hash + Integer + Copy> Hash for ContiguousIntegerSet<E>[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl<E> Unpin for ContiguousIntegerSet<E> where
    E: Unpin

impl<E> Send for ContiguousIntegerSet<E> where
    E: Send

impl<E> Sync for ContiguousIntegerSet<E> where
    E: Sync

impl<E> RefUnwindSafe for ContiguousIntegerSet<E> where
    E: RefUnwindSafe

impl<E> UnwindSafe for ContiguousIntegerSet<E> where
    E: UnwindSafe

Blanket Implementations

impl<T> HasCardinality for T where
    T: Countable
[src]

impl<T> Countable for T where
    T: Finite
[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.

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

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,