pub struct Reason(/* private fields */);
Expand description
The reason for assigning a literal
A literal can be assumed, or forced by some clause. The clause is stored as offset to reduce the number of indirections in propagate.
This is essentially this enum, but we pack everything into size_of::<usize>()
bits.
enum Reason {
Assumed,
Forced(usize),
}
Implementations§
Trait Implementations§
impl Copy for Reason
impl Eq for Reason
impl StructuralPartialEq for Reason
Auto Trait Implementations§
impl Freeze for Reason
impl RefUnwindSafe for Reason
impl Send for Reason
impl Sync for Reason
impl Unpin for Reason
impl UnwindSafe for Reason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> HeapSpace for Twhere
T: Copy,
impl<T> HeapSpace for Twhere
T: Copy,
Source§fn heap_space(&self) -> usize
fn heap_space(&self) -> usize
The number of bytes allocated on the heap that this owns.