pub fn is_empty(&self) -> bool {
        for (index, byte) in self.slice.iter().enumerate() {
            let desired_state =
                if self.bits % 8 != 0 && index == byte_size(self.bits) - 1 {
                    // Last byte should pad out of range bits to 1
                    0xFF << (8 - self.bits % 8)
                } else {
                    0x00
                };

            if byte.load(Relaxed) != desired_state {
                return false;
            }
        }

        true
    }
/// Checks if the region is empty. Only can be trusted if there are no
/// other references to the region, as the whole operation is not
/// atomic.
Checks if the region is empty. Only can be trusted if there are no
other references to the region, as the whole operation is not
atomic.
Checks if the region is empty . Only can be trusted if there are no other references to the region as the whole operation is not atomic .
pub fn is_empty(&self) -> bool {
        for (index, byte) in self.slice.iter().enumerate() {
            let desired_state =
                if self.bits % 8 != 0 && index == byte_size(self.bits) - 1 {
                    // Last byte should pad out of range bits to 1
                    0xFF << (8 - self.bits % 8)
                } else {
                    0x00
                };
            if byte.load(Relaxed) != desired_state {
                return false;
            }
        }
        true
    }
pub fn is_empty ( & self ) -> bool { for ( index , byte ) in self . slice . iter ( ) . enumerate ( ) { let desired_state = if self . bits % 8 != 0 && index == byte_size ( self . bits ) - 1 { // Last byte should pad out of range bits to 1 0xFF << ( 8 - self . bits % 8 ) } else { 0x00 } ; if byte . load ( Relaxed ) != desired_state { return false ; } } true }
Checks if the region is empty.
Checks if the region is empty .
&self