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[src]
fn unsecure(&self) -> &T[src]
Borrow the contents of the string.
fn unsecure_mut(&mut self) -> &mut T[src]
Mutably borrow the contents of the string.
fn zero_out(&mut self)[src]
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>[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
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[src]
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[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
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,