pub struct SecureString(/* private fields */);Expand description
Wrapper for a vector that stores a valid UTF-8 string
Implementations§
Source§impl SecureString
 
impl SecureString
Sourcepub fn unsecure_mut(&mut self) -> &mut str
 
pub fn unsecure_mut(&mut self) -> &mut str
Mutably borrow the contents of the string.
Sourcepub fn into_unsecure(self) -> String
 
pub fn into_unsecure(self) -> String
Turn the string into a regular String again.
Trait Implementations§
Source§impl Clone for SecureString
 
impl Clone for SecureString
Source§fn clone(&self) -> SecureString
 
fn clone(&self) -> SecureString
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moreSource§impl Debug for SecureString
 
impl Debug for SecureString
Source§impl Display for SecureString
 
impl Display for SecureString
Source§impl<U> From<U> for SecureString
 
impl<U> From<U> for SecureString
Source§fn from(s: U) -> SecureString
 
fn from(s: U) -> SecureString
Converts to this type from the input type.
Source§impl FromStr for SecureString
 
impl FromStr for SecureString
Source§impl PartialEq for SecureString
 
impl PartialEq for SecureString
impl Eq for SecureString
Auto Trait Implementations§
impl Freeze for SecureString
impl RefUnwindSafe for SecureString
impl Send for SecureString
impl Sync for SecureString
impl Unpin for SecureString
impl UnwindSafe for SecureString
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more