pub type CloneableVec = Dynamic<CloneableVecInner>;Aliased Type§
pub struct CloneableVec(/* private fields */);Implementations§
Source§impl CloneableVec
impl CloneableVec
pub const fn expose_inner(&self) -> &Vec<u8> ⓘ
pub fn expose_inner_mut(&mut self) -> &mut Vec<u8> ⓘ
Sourcepub fn init_with<F>(constructor: F) -> Self
pub fn init_with<F>(constructor: F) -> Self
Construct a cloneable vec secret by building it in a closure.
Same stack-minimization benefits as CloneableString::init_with.
§Example
use secure_gate::CloneableVec;
let seed = CloneableVec::init_with(|| {
let mut v = vec![0u8; 32];
// Fill from some source...
v
});Trait Implementations§
Source§impl From<&[u8]> for CloneableVec
Available on crate feature zeroize only.
impl From<&[u8]> for CloneableVec
Available on crate feature
zeroize only.