pub enum Type<'a> {
Bool,
Integer,
String,
ByteString,
Unit,
List(&'a Type<'a>),
Array(&'a Type<'a>),
Pair(&'a Type<'a>, &'a Type<'a>),
Data,
Bls12_381G1Element,
Bls12_381G2Element,
Bls12_381MlResult,
}Variants§
Bool
Integer
String
ByteString
Unit
List(&'a Type<'a>)
Array(&'a Type<'a>)
Pair(&'a Type<'a>, &'a Type<'a>)
Data
Bls12_381G1Element
Bls12_381G2Element
Bls12_381MlResult
Implementations§
Source§impl<'a> Type<'a>
impl<'a> Type<'a>
pub fn integer(arena: &'a Arena) -> &'a Type<'a>
pub fn bool(arena: &'a Arena) -> &'a Type<'a>
pub fn string(arena: &'a Arena) -> &'a Type<'a>
pub fn byte_string(arena: &'a Arena) -> &'a Type<'a>
pub fn unit(arena: &'a Arena) -> &'a Type<'a>
pub fn data(arena: &'a Arena) -> &'a Type<'a>
pub fn list(arena: &'a Arena, inner: &'a Type<'a>) -> &'a Type<'a>
pub fn array(arena: &'a Arena, inner: &'a Type<'a>) -> &'a Type<'a>
pub fn pair( arena: &'a Arena, fst: &'a Type<'a>, snd: &'a Type<'a>, ) -> &'a Type<'a>
pub fn g1(arena: &'a Arena) -> &'a Type<'a>
pub fn g2(arena: &'a Arena) -> &'a Type<'a>
pub fn ml_result(arena: &'a Arena) -> &'a Type<'a>
Trait Implementations§
impl<'a> StructuralPartialEq for Type<'a>
Auto Trait Implementations§
impl<'a> Freeze for Type<'a>
impl<'a> RefUnwindSafe for Type<'a>
impl<'a> Send for Type<'a>
impl<'a> Sync for Type<'a>
impl<'a> Unpin for Type<'a>
impl<'a> UnsafeUnpin for Type<'a>
impl<'a> UnwindSafe for Type<'a>
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