Struct secstr::SecBox [] [src]

pub struct SecBox<T> where
    T: Sized + Copy
{ /* fields omitted */ }

Methods

impl<T> SecBox<T> where
    T: Sized + Copy
[src]

Borrow the contents of the string.

Mutably borrow the contents of the string.

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Eq> Eq for SecBox<T> where
    T: Sized + Copy
[src]

impl<T> Borrow<T> for SecBox<T> where
    T: Sized + Copy
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for SecBox<T> where
    T: Sized + Copy
[src]

Mutably borrows from an owned value. Read more

impl<T> Drop for SecBox<T> where
    T: Sized + Copy
[src]

A method called when the value goes out of scope. Read more

impl<T> PartialEq for SecBox<T> where
    T: Sized + Copy
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T> Debug for SecBox<T> where
    T: Sized + Copy
[src]

Formats the value using the given formatter.

impl<T> Display for SecBox<T> where
    T: Sized + Copy
[src]

Formats the value using the given formatter. Read more