Struct prototty_common::MenuEntry [] [src]

pub struct MenuEntry<T: Copy> {
    pub name: String,
    pub value: T,
}

A single entry in a menu. It owns the value which will be yielded if this entry is finalised.

Fields

Trait Implementations

impl<T: Debug + Copy> Debug for MenuEntry<T>
[src]

[src]

Formats the value using the given formatter.

impl<T: Clone + Copy> Clone for MenuEntry<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Copy, S: Into<String>> From<(S, T)> for MenuEntry<T>
[src]

[src]

Performs the conversion.