[−][src]Struct analytic::set::ordered_integer_set::ContiguousIntegerSet
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]
&'a self,
slicer: I
) -> Option<ContiguousIntegerSet<E>>
Trait Implementations
impl<E: Integer + Copy> Interval for ContiguousIntegerSet<E>
[src]
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
fn coalesce_with(&self, other: &Self) -> Option<Self>
[src]
impl<E: Integer + Copy> Coalesce<E> for ContiguousIntegerSet<E>
[src]
fn coalesce_with(&self, other: &E) -> Option<Self>
[src]
impl<E: Integer + Copy + ToPrimitive> CoalesceIntervals<ContiguousIntegerSet<E>, E> for OrderedIntegerSet<E>
[src]
fn to_coalesced_intervals(&self) -> Vec<ContiguousIntegerSet<E>>
[src]
fn coalesce_intervals_inplace(&mut self)
[src]
fn into_coalesced(self) -> Self
[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]
&'s self,
size: usize
) -> Result<O, String>
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]
fn slice(
self,
input: &ContiguousIntegerSet<E>
) -> Option<ContiguousIntegerSet<E>>
[src]
self,
input: &ContiguousIntegerSet<E>
) -> Option<ContiguousIntegerSet<E>>
impl<E: Integer + Copy> Set<E, Option<ContiguousIntegerSet<E>>> for ContiguousIntegerSet<E>
[src]
fn is_empty(&self) -> bool
[src]
fn contains(&self, item: E) -> bool
[src]
fn intersect(
&self,
other: &ContiguousIntegerSet<E>
) -> Option<ContiguousIntegerSet<E>>
[src]
&self,
other: &ContiguousIntegerSet<E>
) -> Option<ContiguousIntegerSet<E>>
impl<E: Integer + Copy + ToPrimitive> Finite for ContiguousIntegerSet<E>
[src]
impl<E: Integer + Copy + ToPrimitive> Refineable<Vec<ContiguousIntegerSet<E>>> for ContiguousIntegerSet<E>
[src]
fn get_common_refinement(
&self,
other: &ContiguousIntegerSet<E>
) -> IntegerIntervalRefinement<E>
[src]
&self,
other: &ContiguousIntegerSet<E>
) -> IntegerIntervalRefinement<E>
impl<'_, E: Integer + Copy> ToIterator<'_, ContiguousIntegerSetIter<E>, E> for ContiguousIntegerSet<E>
[src]
ⓘImportant traits for ContiguousIntegerSetIter<E>fn to_iter(&self) -> ContiguousIntegerSetIter<E>
[src]
impl<E: Integer + Copy> From<ContiguousIntegerSet<E>> for ContiguousIntegerSetIter<E>
[src]
ⓘImportant traits for ContiguousIntegerSetIter<E>fn from(
contiguous_integer_set: ContiguousIntegerSet<E>
) -> ContiguousIntegerSetIter<E>
[src]
contiguous_integer_set: ContiguousIntegerSet<E>
) -> ContiguousIntegerSetIter<E>
impl<E: Clone + Integer + Copy> Clone for ContiguousIntegerSet<E>
[src]
fn clone(&self) -> 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]
fn eq(&self, other: &ContiguousIntegerSet<E>) -> bool
[src]
fn ne(&self, other: &ContiguousIntegerSet<E>) -> bool
[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.
fn sub(self, rhs: &ContiguousIntegerSet<E>) -> Self::Output
[src]
impl<E: Integer + Copy + ToPrimitive> Sub<ContiguousIntegerSet<E>> for ContiguousIntegerSet<E>
[src]
type Output = OrderedIntegerSet<E>
The resulting type after applying the -
operator.
fn sub(self, rhs: ContiguousIntegerSet<E>) -> Self::Output
[src]
impl<'_, E: Integer + Copy + ToPrimitive> Sub<&'_ ContiguousIntegerSet<E>> for OrderedIntegerSet<E>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: &ContiguousIntegerSet<E>) -> Self::Output
[src]
impl<E: Integer + Copy + ToPrimitive> Sub<ContiguousIntegerSet<E>> for OrderedIntegerSet<E>
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: ContiguousIntegerSet<E>) -> Self::Output
[src]
impl<'_, E: Integer + Copy + ToPrimitive> Sub<&'_ OrderedIntegerSet<E>> for ContiguousIntegerSet<E>
[src]
type Output = OrderedIntegerSet<E>
The resulting type after applying the -
operator.
fn sub(self, rhs: &OrderedIntegerSet<E>) -> Self::Output
[src]
impl<E: Integer + Copy + ToPrimitive> Sub<OrderedIntegerSet<E>> for ContiguousIntegerSet<E>
[src]
type Output = OrderedIntegerSet<E>
The resulting type after applying the -
operator.
fn sub(self, rhs: OrderedIntegerSet<E>) -> Self::Output
[src]
impl<'_, E: Integer + Copy + ToPrimitive> SubAssign<&'_ ContiguousIntegerSet<E>> for OrderedIntegerSet<E>
[src]
fn sub_assign(&mut self, rhs: &ContiguousIntegerSet<E>)
[src]
impl<E: Integer + Copy + ToPrimitive> SubAssign<ContiguousIntegerSet<E>> for OrderedIntegerSet<E>
[src]
fn sub_assign(&mut self, rhs: ContiguousIntegerSet<E>)
[src]
impl<E: Hash + Integer + Copy> Hash for ContiguousIntegerSet<E>
[src]
Auto Trait Implementations
impl<E> Unpin for ContiguousIntegerSet<E> where
E: Unpin,
E: Unpin,
impl<E> Send for ContiguousIntegerSet<E> where
E: Send,
E: Send,
impl<E> Sync for ContiguousIntegerSet<E> where
E: Sync,
E: Sync,
impl<E> RefUnwindSafe for ContiguousIntegerSet<E> where
E: RefUnwindSafe,
E: RefUnwindSafe,
impl<E> UnwindSafe for ContiguousIntegerSet<E> where
E: UnwindSafe,
E: UnwindSafe,
Blanket Implementations
impl<T> HasCardinality for T where
T: Countable,
[src]
T: Countable,
fn get_cardinality(&Self) -> Cardinality
[src]
impl<T> Countable for T where
T: Finite,
[src]
T: Finite,
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, 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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,