Struct secstr::SecureString
source · 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 copy 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 SecureStringwhere
U: Into<String>,
impl<U> From<U> for SecureStringwhere U: Into<String>,
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
source§fn eq(&self, other: &SecureString) -> bool
fn eq(&self, other: &SecureString) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SecureString
impl StructuralEq for SecureString
Auto Trait Implementations§
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