Type Alias SecretSlice

Source
pub type SecretSlice<S> = SecretBox<[S]>;
Expand description

Secret slice type.

This is a type alias for [SecretBox<[S]>] which supports some helpful trait impls.

Notably it has a From<Vec<S>> impl which is the preferred method for construction.

Aliased Type§

pub struct SecretSlice<S> { /* private fields */ }

Trait Implementations§

Source§

impl<S> Clone for SecretSlice<S>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<S> Default for SecretSlice<S>
where S: Zeroize, [S]: Zeroize,

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<S> From<Vec<S>> for SecretSlice<S>
where S: Zeroize, [S]: Zeroize,

Source§

fn from(vec: Vec<S>) -> Self

Converts to this type from the input type.