Struct N6

Source
pub struct N6<G = char> { /* private fields */ }

Trait Implementations§

Source§

impl<G> AsMut<N1<G>> for N6<G>

Source§

fn as_mut(&mut self) -> &mut N1<G>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<G> AsMut<N2<G>> for N6<G>

Source§

fn as_mut(&mut self) -> &mut N2<G>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<G> AsMut<N3<G>> for N6<G>

Source§

fn as_mut(&mut self) -> &mut N3<G>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<G> AsMut<N4<G>> for N6<G>

Source§

fn as_mut(&mut self) -> &mut N4<G>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<G> AsMut<N5<G>> for N6<G>

Source§

fn as_mut(&mut self) -> &mut N5<G>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<G> AsMut<N6<G>> for N10<G>

Source§

fn as_mut(&mut self) -> &mut N6<G>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<G> AsMut<N6<G>> for N11<G>

Source§

fn as_mut(&mut self) -> &mut N6<G>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<G> AsMut<N6<G>> for N12<G>

Source§

fn as_mut(&mut self) -> &mut N6<G>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<G> AsMut<N6<G>> for N6<G>

Source§

fn as_mut(&mut self) -> &mut N6<G>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<G> AsMut<N6<G>> for N7<G>

Source§

fn as_mut(&mut self) -> &mut N6<G>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<G> AsMut<N6<G>> for N8<G>

Source§

fn as_mut(&mut self) -> &mut N6<G>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<G> AsMut<N6<G>> for N9<G>

Source§

fn as_mut(&mut self) -> &mut N6<G>

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<G> AsRef<N1<G>> for N6<G>

Source§

fn as_ref(&self) -> &N1<G>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<G> AsRef<N2<G>> for N6<G>

Source§

fn as_ref(&self) -> &N2<G>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<G> AsRef<N3<G>> for N6<G>

Source§

fn as_ref(&self) -> &N3<G>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<G> AsRef<N4<G>> for N6<G>

Source§

fn as_ref(&self) -> &N4<G>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<G> AsRef<N5<G>> for N6<G>

Source§

fn as_ref(&self) -> &N5<G>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<G> AsRef<N6<G>> for N10<G>

Source§

fn as_ref(&self) -> &N6<G>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<G> AsRef<N6<G>> for N11<G>

Source§

fn as_ref(&self) -> &N6<G>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<G> AsRef<N6<G>> for N12<G>

Source§

fn as_ref(&self) -> &N6<G>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<G> AsRef<N6<G>> for N6<G>

Source§

fn as_ref(&self) -> &N6<G>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<G> AsRef<N6<G>> for N7<G>

Source§

fn as_ref(&self) -> &N6<G>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<G> AsRef<N6<G>> for N8<G>

Source§

fn as_ref(&self) -> &N6<G>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<G> AsRef<N6<G>> for N9<G>

Source§

fn as_ref(&self) -> &N6<G>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<G: Debug> Debug for N6<G>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<G: Default> Default for N6<G>

Source§

fn default() -> N6<G>

Returns the “default value” for a type. Read more
Source§

impl From<&str> for N6<char>

Source§

fn from(text: &str) -> Self

Converts to this type from the input type.
Source§

impl<G> Ngrams<G> for N6<G>
where G: Copy + Default + PartialEq + Eq + Hash,

Source§

fn clear(&mut self)

Clears all of the ngrams.
Source§

fn feed_from(&mut self, iter: impl IntoIterator<Item = G>)

Adds all of the items from iter.

Auto Trait Implementations§

§

impl<G> Freeze for N6<G>

§

impl<G> RefUnwindSafe for N6<G>
where G: RefUnwindSafe,

§

impl<G> Send for N6<G>
where G: Send,

§

impl<G> Sync for N6<G>
where G: Sync,

§

impl<G> Unpin for N6<G>
where G: Unpin,

§

impl<G> UnwindSafe for N6<G>
where G: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.