pub struct Platform {
pub requests: PlatformRequestCollection,
pub buf_pool: BufPool,
pub copy_command: String,
pub paste_command: String,
/* private fields */
}
Fields
requests: PlatformRequestCollection
buf_pool: BufPool
copy_command: String
paste_command: String
Implementations
sourceimpl Platform
impl Platform
pub fn set_clipboard_api(
&mut self,
read_from_clipboard_fn: fn(_: &mut String),
write_to_clipboard_fn: fn(_: &str)
)
pub fn read_from_clipboard(&self, text: &mut String)
pub fn write_to_clipboard(&mut self, text: &str)
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Platform
impl Send for Platform
impl Sync for Platform
impl Unpin for Platform
impl !UnwindSafe for Platform
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more