Struct gio::MenuItem [−]
pub struct MenuItem(_, _);
Methods
impl MenuItem
[src]
impl MenuItem
pub fn new<'a, 'b, P: Into<Option<&'a str>>, Q: Into<Option<&'b str>>>(
label: P,
detailed_action: Q
) -> MenuItem
[src]
pub fn new<'a, 'b, P: Into<Option<&'a str>>, Q: Into<Option<&'b str>>>(
label: P,
detailed_action: Q
) -> MenuItem
pub fn new_section<'a, P: Into<Option<&'a str>>, Q: IsA<MenuModel>>(
label: P,
section: &Q
) -> MenuItem
[src]
pub fn new_section<'a, P: Into<Option<&'a str>>, Q: IsA<MenuModel>>(
label: P,
section: &Q
) -> MenuItem
Trait Implementations
impl Clone for MenuItem
impl Clone for MenuItem
fn clone(&self) -> MenuItem
fn clone(&self) -> MenuItem
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for MenuItem
impl Debug for MenuItem
impl Hash for MenuItem
impl Hash for MenuItem
fn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl StaticType for MenuItem
impl StaticType for MenuItem
fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
impl<T: IsA<Object>> PartialEq<T> for MenuItem
impl<T: IsA<Object>> PartialEq<T> for MenuItem
fn eq(&self, other: &T) -> bool
fn eq(&self, other: &T) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for MenuItem
impl Eq for MenuItem
impl IsA<Object> for MenuItem
impl IsA<Object> for MenuItem