pub struct LocalClipboard { /* private fields */ }Expand description
The default owner: one item per slot, in memory.
Implementations§
Trait Implementations§
Source§impl Clipboard for LocalClipboard
impl Clipboard for LocalClipboard
Source§fn put(&mut self, slot: &Slot, item: ClipItem, _origin: &Origin) -> Answer
fn put(&mut self, slot: &Slot, item: ClipItem, _origin: &Origin) -> Answer
Keeps an item in a slot, replacing what it held.
Source§fn may_use(&self, origin: &Origin, slot: &Slot) -> Result<(), String>
fn may_use(&self, origin: &Origin, slot: &Slot) -> Result<(), String>
Whether
origin may read and write slot: by default, the user
any slot, a session its own only (default_access).Source§fn take_events(&mut self) -> Vec<(String, Json)>
fn take_events(&mut self) -> Vec<(String, Json)>
The events to publish since the last call, as (name, data).
Source§fn system(&mut self) -> Option<&mut dyn SystemBackend>
fn system(&mut self) -> Option<&mut dyn SystemBackend>
The owner’s own way to the system clipboard (a kernel writing
its private types there): it wins over the one installed with
set_backend, which wins over egui’s text.Source§impl Debug for LocalClipboard
impl Debug for LocalClipboard
Source§impl Default for LocalClipboard
impl Default for LocalClipboard
Source§fn default() -> LocalClipboard
fn default() -> LocalClipboard
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LocalClipboard
impl RefUnwindSafe for LocalClipboard
impl Send for LocalClipboard
impl Sync for LocalClipboard
impl Unpin for LocalClipboard
impl UnsafeUnpin for LocalClipboard
impl UnwindSafe for LocalClipboard
Blanket Implementations§
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.