Skip to main content

NSValidatedUserInterfaceItem

Trait NSValidatedUserInterfaceItem 

Source
pub unsafe trait NSValidatedUserInterfaceItem: MainThreadOnly {
    // Provided methods
    fn action(&self) -> Option<Sel>
       where Self: Sized + Message { ... }
    fn tag(&self) -> NSInteger
       where Self: Sized + Message { ... }
}
Available on crate feature NSUserInterfaceValidation only.
Expand description

Provided Methods§

Source

fn action(&self) -> Option<Sel>
where Self: Sized + Message,

Source

fn tag(&self) -> NSInteger
where Self: Sized + Message,

Trait Implementations§

Source§

impl<T> ImplementedBy<T> for dyn NSValidatedUserInterfaceItem

Source§

impl ProtocolType for dyn NSValidatedUserInterfaceItem

Source§

const NAME: &'static str = "NSValidatedUserInterfaceItem"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> NSValidatedUserInterfaceItem for ProtocolObject<T>

Implementors§

Source§

impl NSValidatedUserInterfaceItem for NSMenuItem

Available on crate feature NSMenuItem only.
Source§

impl NSValidatedUserInterfaceItem for NSToolbarItem

Available on crate feature NSToolbarItem only.