1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
use cratesodium;
use crate*;
/// Types that can be safely initialized by setting their memory to all
/// zeroes.
///
/// The trait is marked unsafe in order to restrict implementors to
/// types that can safely have their underlying memory set to all
/// zeroes.
///
/// # Safety
///
/// This trait allows for overwriting a type's memory with zeros. If
/// it is not legal to represent your type as zero bits, then your type
/// may not implement this trait.
pub unsafe
// Anything that can have its underlying storage randomized can
// inherently have its underlying storage zeroed out (since zero is a
// potentially random value).
unsafe