pub enum SLP {
Identity,
Generator(u64),
Product(Box<SLP>, Box<SLP>),
Inverse(Box<SLP>),
}
Expand description
Single Line Program (SLP) references various elements to form a expression That can be evaluated to actual group elements.
Variants§
Identity
The identity element of a SLP.
Generator(u64)
A generator, indexed by an integer.
Product(Box<SLP>, Box<SLP>)
Product of two SLPs.
Inverse(Box<SLP>)
Inverse of a SLP.
Implementations§
Trait Implementations§
Source§impl GroupElement for SLP
impl GroupElement for SLP
impl Eq for SLP
impl StructuralPartialEq for SLP
Auto Trait Implementations§
impl Freeze for SLP
impl RefUnwindSafe for SLP
impl Send for SLP
impl Sync for SLP
impl Unpin for SLP
impl UnwindSafe for SLP
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