pub struct UniqueResult<T>where
T: Element,{
pub values: Array<T, Ix1>,
pub indices: Option<Array<u64, Ix1>>,
pub counts: Option<Array<u64, Ix1>>,
}Expand description
Result from the unique function.
Fields§
§values: Array<T, Ix1>The sorted unique values.
indices: Option<Array<u64, Ix1>>If requested, the indices of the first occurrence of each unique value in the original array (as u64).
counts: Option<Array<u64, Ix1>>If requested, the count of each unique value (as u64).
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for UniqueResult<T>
impl<T> RefUnwindSafe for UniqueResult<T>where
T: RefUnwindSafe,
impl<T> Send for UniqueResult<T>
impl<T> Sync for UniqueResult<T>
impl<T> Unpin for UniqueResult<T>
impl<T> UnsafeUnpin for UniqueResult<T>
impl<T> UnwindSafe for UniqueResult<T>where
T: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more