Struct structured::NLargestCount
source · [−]pub struct NLargestCount { /* private fields */ }
Implementations
sourceimpl NLargestCount
impl NLargestCount
pub fn new(
number_of_elements: usize,
top_n: Vec<ElementCount>,
mode: Option<Element>
) -> Self
pub fn number_of_elements(&self) -> usize
pub fn top_n(&self) -> &Vec<ElementCount>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn mode(&self) -> Option<&Element>
Trait Implementations
sourceimpl Clone for NLargestCount
impl Clone for NLargestCount
sourcefn clone(&self) -> NLargestCount
fn clone(&self) -> NLargestCount
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NLargestCount
impl Debug for NLargestCount
sourceimpl Default for NLargestCount
impl Default for NLargestCount
sourcefn default() -> NLargestCount
fn default() -> NLargestCount
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for NLargestCount
impl<'de> Deserialize<'de> for NLargestCount
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for NLargestCount
impl Display for NLargestCount
sourceimpl PartialEq<NLargestCount> for NLargestCount
impl PartialEq<NLargestCount> for NLargestCount
sourcefn eq(&self, other: &NLargestCount) -> bool
fn eq(&self, other: &NLargestCount) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &NLargestCount) -> bool
fn ne(&self, other: &NLargestCount) -> bool
This method tests for !=
.
sourceimpl Serialize for NLargestCount
impl Serialize for NLargestCount
impl StructuralPartialEq for NLargestCount
Auto Trait Implementations
impl RefUnwindSafe for NLargestCount
impl Send for NLargestCount
impl Sync for NLargestCount
impl Unpin for NLargestCount
impl UnwindSafe for NLargestCount
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more