pub unsafe trait NSTouchBarDelegate: NSObjectProtocol + MainThreadOnly {
// Provided method
fn touchBar_makeItemForIdentifier(
&self,
touch_bar: &NSTouchBar,
identifier: &NSTouchBarItemIdentifier,
) -> Option<Retained<NSTouchBarItem>>
where Self: Sized + Message { ... }
}Available on crate feature
NSTouchBar only.Expand description
Provided Methods§
fn touchBar_makeItemForIdentifier( &self, touch_bar: &NSTouchBar, identifier: &NSTouchBarItemIdentifier, ) -> Option<Retained<NSTouchBarItem>>
Available on crate feature
NSTouchBarItem only.Trait Implementations§
impl<T> ImplementedBy<T> for dyn NSTouchBarDelegate
Source§impl ProtocolType for dyn NSTouchBarDelegate
impl ProtocolType for dyn NSTouchBarDelegate
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
impl<T> NSTouchBarDelegate for ProtocolObject<T>where
T: ?Sized + NSTouchBarDelegate,
Implementors§
impl NSTouchBarDelegate for NSTextView
Available on crate feature
NSTextView only.