[go: up one dir, main page]

Type Alias secrecy::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§

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

Trait Implementations§

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.