[][src]Struct shellac_codec::Suggestion

pub struct Suggestion<T> { /* fields omitted */ }

A single autocompletion suggestion

Methods

impl<T> Suggestion<T>[src]

pub const fn new(suggestion: SuggestionType<T>, description: T) -> Self[src]

Generate a new suggestion to encode

pub const fn description(&self) -> &T[src]

Get the associated description

pub const fn suggestion(&self) -> &SuggestionType<T>[src]

Get the associated suggestion

Trait Implementations

impl<T: Eq> Eq for Suggestion<T>[src]

impl<T: Clone> Clone for Suggestion<T>[src]

impl<T: PartialEq> PartialEq<Suggestion<T>> for Suggestion<T>[src]

impl<T: Hash> Hash for Suggestion<T>[src]

impl<T: Debug> Debug for Suggestion<T>[src]

impl<T> Serialize for Suggestion<T> where
    T: Serialize
[src]

Auto Trait Implementations

impl<T> Send for Suggestion<T> where
    T: Send

impl<T> Unpin for Suggestion<T> where
    T: Unpin

impl<T> Sync for Suggestion<T> where
    T: Sync

impl<T> RefUnwindSafe for Suggestion<T> where
    T: RefUnwindSafe

impl<T> UnwindSafe for Suggestion<T> where
    T: UnwindSafe

Blanket Implementations

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> From<T> for T[src]

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]