Lines Matching full:because
38 // Safe because the DataInit trait asserts any data is valid for this type, and we ensured in from_slice()
40 // we don't have any unaligned references. This aliases a pointer, but because the pointer in from_slice()
42 // returned can not outlive data because they have equal implicit lifetime constraints. in from_slice()
51 /// Because `Self` is made from a reference to the mutable slice`, mutations to the returned
63 // Safe because the DataInit trait asserts any data is valid for this type, and we ensured in from_mut_slice()
65 // we don't have any unaligned references. This aliases a pointer, but because the pointer in from_mut_slice()
67 // reference returned can not outlive data because they have equal implicit lifetime in from_mut_slice()
80 // Safe because the pointer is valid and points to `size_of::<Self>()` bytes of zeroes, in from_reader()
85 // Safe because any bit pattern is considered a valid value for `Self`. in from_reader()
95 // Safe because the entire size of self is accessible as bytes because the trait guarantees in as_slice()
103 /// Because the slice is made from a reference to `self`, mutations to the returned slice are
107 // Safe because the entire size of self is accessible as bytes because the trait guarantees in as_mut_slice()