@@ -136,15 +136,15 @@ impl<Tag, Extra> Allocation<Tag, Extra> {
136
136
self . size . bytes ( ) as usize
137
137
}
138
138
139
- /// Look at a slice which may describe undefined bytes or describe a relocation. This differs
139
+ /// Looks at a slice which may describe undefined bytes or describe a relocation. This differs
140
140
/// from `get_bytes_with_undef_and_ptr` in that it does no relocation checks (even on the
141
141
/// edges) at all. It further ignores `AllocationExtra` callbacks.
142
142
/// This must not be used for reads affecting the interpreter execution.
143
143
pub fn inspect_with_undef_and_ptr_outside_interpreter ( & self , range : Range < usize > ) -> & [ u8 ] {
144
144
& self . bytes [ range]
145
145
}
146
146
147
- /// View the undef mask.
147
+ /// Returns the undef mask.
148
148
pub fn undef_mask ( & self ) -> & UndefMask {
149
149
& self . undef_mask
150
150
}
@@ -583,7 +583,7 @@ pub struct AllocationDefinedness {
583
583
/// Transferring the definedness mask to other allocations.
584
584
impl < Tag , Extra > Allocation < Tag , Extra > {
585
585
/// Creates a run-length encoding of the undef_mask.
586
- pub fn compress_defined_range (
586
+ pub fn compress_undef_range (
587
587
& self ,
588
588
src : Pointer < Tag > ,
589
589
size : Size ,
@@ -622,7 +622,7 @@ impl<Tag, Extra> Allocation<Tag, Extra> {
622
622
}
623
623
624
624
/// Apply multiple instances of the run-length encoding to the undef_mask.
625
- pub fn mark_compressed_range (
625
+ pub fn mark_compressed_undef_range (
626
626
& mut self ,
627
627
defined : & AllocationDefinedness ,
628
628
dest : Pointer < Tag > ,
0 commit comments