Reorder AllocationDefinedness members

This improves the clarity of the documentation a bit since they can
reference each other when reading the member docs in sequence.
This commit is contained in:
Andreas Molzer 2019-08-31 21:21:29 +02:00
parent 823c3b9845
commit f3c435eb78

View File

@ -581,10 +581,11 @@ pub fn mark_definedness(
/// Run-length encoding of the undef mask.
/// Used to copy parts of a mask multiple times to another allocation.
pub struct AllocationDefinedness {
/// The lengths of ranges that are run-length encoded.
ranges: smallvec::SmallVec::<[u64; 1]>,
/// The definedness of the first range.
initial: bool,
/// The lengths of ranges that are run-length encoded.
/// The definedness of the ranges alternate starting with `initial`.
ranges: smallvec::SmallVec::<[u64; 1]>,
}
/// Transferring the definedness mask to other allocations.