pub struct Pasteboard { /* private fields */ }Expand description
A thin wrapper around NSPasteboard, implementing DataTransfer.
Implementations§
Source§impl Pasteboard
impl Pasteboard
Sourcepub fn types(&self) -> &[PasteboardType]
pub fn types(&self) -> &[PasteboardType]
Get the array of PasteboardTypes advertized by this Pasteboard.
Sourcepub fn id(&self) -> DataTransferId
pub fn id(&self) -> DataTransferId
Get the DataTransferId of this pasteboard.
Trait Implementations§
Source§impl Clone for Pasteboard
impl Clone for Pasteboard
Source§impl DataTransfer for Pasteboard
impl DataTransfer for Pasteboard
Source§fn for_each_available_type<'this>(
&'this self,
func: &mut dyn FnMut(&'this dyn TransferType) -> ControlFlow<()>,
)
fn for_each_available_type<'this>( &'this self, func: &mut dyn FnMut(&'this dyn TransferType) -> ControlFlow<()>, )
Iterate over each type advertized by this
DataTransfer. This is just a minor optimization,
in most cases you should probably use has_type or
available_types.Source§fn available_types(&self) -> Vec<&(dyn TransferType + 'static)>
fn available_types(&self) -> Vec<&(dyn TransferType + 'static)>
Display the list of all available types. Read more
Source§fn has_type(&self, type_: &(dyn TransferType + 'static)) -> bool
fn has_type(&self, type_: &(dyn TransferType + 'static)) -> bool
Check if the supplied type is provided by this
DataTransfer. Read moreAuto Trait Implementations§
impl !Freeze for Pasteboard
impl !RefUnwindSafe for Pasteboard
impl !UnwindSafe for Pasteboard
impl Send for Pasteboard
impl Sync for Pasteboard
impl Unpin for Pasteboard
impl UnsafeUnpin for Pasteboard
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more