Skip to content

Commit

Permalink
Explain the bits of UndefMask
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Mar 12, 2019
1 parent 60fde17 commit 1ae1312
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/librustc/mir/interpret/allocation.rs
Expand Up @@ -613,6 +613,8 @@ impl<Tag> DerefMut for Relocations<Tag> {

type Block = u64;

/// A bitmask where each bit refers to the byte with the same index. If the bit is `true`, the byte
/// is defined. If it is `false` the byte is undefined.
#[derive(Clone, Debug, Eq, PartialEq, PartialOrd, Ord, Hash, RustcEncodable, RustcDecodable)]
pub struct UndefMask {
blocks: Vec<Block>,
Expand Down

0 comments on commit 1ae1312

Please sign in to comment.