[][src]Struct sentaku::SentakuItem

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

Structure for each item to be chosen by the user label will be displayed and value will be returned when the user select the item

Methods

impl SentakuItem<String>[src]

pub fn from_str(label: &str) -> Self[src]

construct SentakuItem. value will be the same as label.

impl<T> SentakuItem<T>[src]

pub fn new(label: &str, value: T) -> Self[src]

construct SentakuItem.

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<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.