# gpui: Implement From trait for Clipboard related structs \(\#27585\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/01b400ea297b706d15d7927d03e72aa6785a81ba)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 01b400ea297b706d15d7927d03e72aa6785a81ba

Requested commit: 01b400ea297b706d15d7927d03e72aa6785a81ba

Commit: 01b400ea297b706d15d7927d03e72aa6785a81ba

Tree: 532230eba3abc4a3b589bc026846584823e7c899

Author: tidely

Committer: GitHub

## Message

````
gpui: Implement From trait for Clipboard related structs (#27585)

Implement the From trait for some simple conversations between Clipboard
related structs.

This PR only adds the From trait implementations and doesn't touch any
code. In a future PR we can simplify usage throughout the codebase, such
as:

```rust
// impl ClipboardString
fn new(text: String) -> Self {
    Self::from(text)
}
```

Release Notes:

- N/A *or* Added/Fixed/Improved ...
````

## Parents

- [9445005bffe6c2bd4996deb86768e82cfc42a31d](https://git.cafe/gitcafe/zed/commit/9445005bffe6c2bd4996deb86768e82cfc42a31d?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/01b400ea297b706d15d7927d03e72aa6785a81ba?format=markdown)
