Struct secstr::SecBox
[−]
[src]
pub struct SecBox<T> where
T: Sized + Copy, { /* fields omitted */ }
Methods
impl<T> SecBox<T> where
T: Sized + Copy,
[src]
T: Sized + Copy,
fn new(cont: Box<T>) -> Self
fn unsecure(&self) -> &T
Borrow the contents of the string.
fn unsecure_mut(&mut self) -> &mut T
Mutably borrow the contents of the string.
fn zero_out(&mut self)
Overwrite the string with zeros. This is automatically called in the destructor.
Trait Implementations
impl<T: Clone> Clone for SecBox<T> where
T: Sized + Copy,
[src]
T: Sized + Copy,
fn clone(&self) -> SecBox<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<T: Eq> Eq for SecBox<T> where
T: Sized + Copy,
[src]
T: Sized + Copy,
impl<T> Borrow<T> for SecBox<T> where
T: Sized + Copy,
[src]
T: Sized + Copy,
impl<T> BorrowMut<T> for SecBox<T> where
T: Sized + Copy,
[src]
T: Sized + Copy,
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Drop for SecBox<T> where
T: Sized + Copy,
[src]
T: Sized + Copy,
impl<T> PartialEq for SecBox<T> where
T: Sized + Copy,
[src]
T: Sized + Copy,
fn eq(&self, other: &SecBox<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl<T> Debug for SecBox<T> where
T: Sized + Copy,
[src]
T: Sized + Copy,
impl<T> Display for SecBox<T> where
T: Sized + Copy,
[src]
T: Sized + Copy,