pub enum CardClass {
Single,
Subset,
Expand,
Constant,
Reduce(u32),
}Expand description
Cardinality contract published per op so the optimiser can reason about how output cardinality relates to input.
Variants§
Single
Output is exactly one token.
Subset
Output is a strict subset of input (restrictors).
Expand
Output may be larger than input (expanders).
Constant
Output is independent of input (loaders).
Reduce(u32)
Output collapsed to N tokens (reducers).
Trait Implementations§
impl Copy for CardClass
impl Eq for CardClass
impl StructuralPartialEq for CardClass
Auto Trait Implementations§
impl Freeze for CardClass
impl RefUnwindSafe for CardClass
impl Send for CardClass
impl Sync for CardClass
impl Unpin for CardClass
impl UnsafeUnpin for CardClass
impl UnwindSafe for CardClass
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