Struct sequoia_openpgp::crypto::mem::Protected [−][src]
pub struct Protected(_);Expand description
Protected memory.
The memory is guaranteed not to be copied around, and is cleared when the object is dropped.
Examples
use sequoia_openpgp::crypto::mem::Protected;
{
let p: Protected = vec![0, 1, 2].into();
assert_eq!(p.as_ref(), &[0, 1, 2]);
}
// p is cleared once it goes out of scope.Trait Implementations
Auto Trait Implementations
Blanket Implementations
Mutably borrows from an owned value. Read more