[go: up one dir, main page]

terminal-clipboard 0.3.1

a minimal cross-platform clipboard
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use {
    crate::errors::ClipboardError,
};

pub trait Clipboard {

    fn get_type(&self) -> &'static str;

    fn get_string(&self) -> Result<String, ClipboardError>;

    fn set_string(&mut self, s: &str) -> Result<(), ClipboardError>;
}