pub enum Sort {
Bits(u32),
Float(u32),
Memory,
}Expand description
What kind of thing a term computes.
Most things are a bitvector, and the two exceptions are the whole point of this type. A rule with an effect relates one memory to another, and a memory is not a number however many bits one is willing to spend on it. A rule about a float relates two floats, and a float is not the number its bits spell either, however much it looks like one.
Variants§
Bits(u32)
A bitvector this many bits wide.
Float(u32)
A float in the interchange format of this many bits, which is a different kind of thing from the bitvector of the same size: adding two of them is not adding their bits.
Memory
The whole of memory, a map from an address to a byte.
Implementations§
Source§impl Sort
impl Sort
Trait Implementations§
impl Copy for Sort
impl Eq for Sort
impl StructuralPartialEq for Sort
Auto Trait Implementations§
impl Freeze for Sort
impl RefUnwindSafe for Sort
impl Send for Sort
impl Sync for Sort
impl Unpin for Sort
impl UnsafeUnpin for Sort
impl UnwindSafe for Sort
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