pub enum Quantity {
Zero,
One,
Unrestricted,
}Expand description
The quantity/multiplicity annotation on a binder in Idris 2.
Variants§
Zero
0 — erased, not available at runtime.
One
1 — linear, used exactly once.
Unrestricted
Unrestricted (the default, no annotation).
Trait Implementations§
impl Eq for Quantity
impl StructuralPartialEq for Quantity
Auto Trait Implementations§
impl Freeze for Quantity
impl RefUnwindSafe for Quantity
impl Send for Quantity
impl Sync for Quantity
impl Unpin for Quantity
impl UnsafeUnpin for Quantity
impl UnwindSafe for Quantity
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