Lines Matching full:because
19 // Safe because the pointer is valid and points to `size_of::<T>()` bytes of zeroes, in zerocopy_from_reader()
24 // Safe because any bit pattern is considered a valid value for `T`. in zerocopy_from_reader()
67 // Safe because the DataInit trait asserts any data is valid for this type, and we ensured in from_slice()
69 // we don't have any unaligned references. This aliases a pointer, but because the pointer in from_slice()
71 // returned can not outlive data because they have equal implicit lifetime constraints. in from_slice()
90 /// Because `Self` is made from a reference to the mutable slice`, mutations to the returned
102 // Safe because the DataInit trait asserts any data is valid for this type, and we ensured in from_mut_slice()
104 // we don't have any unaligned references. This aliases a pointer, but because the pointer in from_mut_slice()
106 // reference returned can not outlive data because they have equal implicit lifetime in from_mut_slice()
119 // Safe because the pointer is valid and points to `size_of::<Self>()` bytes of zeroes, in from_reader()
124 // Safe because any bit pattern is considered a valid value for `Self`. in from_reader()
134 // Safe because the entire size of self is accessible as bytes because the trait guarantees in as_slice()
142 /// Because the slice is made from a reference to `self`, mutations to the returned slice are
146 // Safe because the entire size of self is accessible as bytes because the trait guarantees in as_mut_slice()