pkstrings: Allow consuming and converting to String
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
a82d73122d
commit
19b0f3989e
1 changed files with 6 additions and 0 deletions
|
@ -102,6 +102,12 @@ impl fmt::Display for Error {
|
|||
#[derive(Debug, Clone, Eq, PartialEq)]
|
||||
pub struct PKString(String);
|
||||
|
||||
impl PKString {
|
||||
pub fn into_string(self) -> String {
|
||||
self.0
|
||||
}
|
||||
}
|
||||
|
||||
impl Deref for PKString {
|
||||
type Target = String;
|
||||
|
||||
|
|
Loading…
Reference in a new issue