pub enum Reading {
Signed,
Unsigned,
}Expand description
Which reading of its operands the test the count came from took.
It matters to anybody widening the value a symbolic count is built out of. The count is the distance to the limit of the exit test, the limit is a value of the counter’s own type, and what that value means is the reading its test took. A limit past the middle of a thirty two bit type is a large number to an unsigned test and a negative one to a signed test, and a consumer that sign extends what an unsigned test compared has turned a loop over three billion elements into a loop that runs no times.
Variants§
Signed
The test read its operands as signed, so widening the count means sign extending it.
Unsigned
The test read them as unsigned, so widening the count means zero extending it.
Trait Implementations§
impl Copy for Reading
impl Eq for Reading
impl StructuralPartialEq for Reading
Auto Trait Implementations§
impl Freeze for Reading
impl RefUnwindSafe for Reading
impl Send for Reading
impl Sync for Reading
impl Unpin for Reading
impl UnsafeUnpin for Reading
impl UnwindSafe for Reading
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more