[][src]Struct native_windows_gui::MenuT

pub struct MenuT<S: Clone + Into<String>, ID: Hash + Clone> {
    pub text: S,
    pub parent: ID,
    pub disabled: bool,
}

A template to create menu controls

Events:
Event::Destroyed

Members:
text : The menu text
parent : ID of the parent control to add the menu to

Fields

text: Sparent: IDdisabled: bool

Trait Implementations

impl<S: Clone + Into<String>, ID: Hash + Clone> ControlT<ID> for MenuT<S, ID>[src]

impl<S: Clone + Clone + Into<String>, ID: Clone + Hash + Clone> Clone for MenuT<S, ID>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<S, ID> Send for MenuT<S, ID> where
    ID: Send,
    S: Send

impl<S, ID> Sync for MenuT<S, ID> where
    ID: Sync,
    S: Sync

Blanket Implementations

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> 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.

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]