# clipboard2
[](https://ci.appveyor.com/project/fschutt/clipboard2)
[](https://travis-ci.org/fschutt/clipboard2)
Hard fork of https://github.com/aweinstock314/rust-clipboard
This library has better error handling than the original one,
the code is mostly copied.
# Usage
```rust
extern crate clipboard2;
use clipboard2::{Clipboard, SystemClipboard};
fn main() {
let clipboard = SystemClipboard::new().unwrap();
clipboard.set_string_contents(String::from("Hello")).unwrap();
println!("{}", clipboard.get_string_contents().unwrap());
}
```