pub enum FieldType {
Field,
JubjubScalar,
Secp256k1Base,
Secp256k1Scalar,
Secp256r1Base,
Secp256r1Scalar,
Curve25519Base,
Curve25519Scalar,
}Expand description
Which field an operation works in. Spelled exactly as compactc’s
extract-contract-info.ss spells the corresponding type names, so a
field-type string and a type-name string are the same vocabulary.
The jubjub base field is the native field, so there is no separate variant for it — upstream emits neither.
Variants§
Field
JubjubScalar
Secp256k1Base
Secp256k1Scalar
Secp256r1Base
Secp256r1Scalar
Curve25519Base
Curve25519Scalar
Implementations§
Source§impl FieldType
impl FieldType
Sourcepub fn descriptor(self) -> TypeDescriptor
pub fn descriptor(self) -> TypeDescriptor
The type descriptor a value of this field is encoded as.
Sourcepub fn of_descriptor(descriptor: &TypeDescriptor) -> Option<FieldType>
pub fn of_descriptor(descriptor: &TypeDescriptor) -> Option<FieldType>
The field a descriptor’s values live in, the inverse of
FieldType::descriptor. None for anything that is not a
field.
Trait Implementations§
impl Copy for FieldType
Source§impl<'de> Deserialize<'de> for FieldType
impl<'de> Deserialize<'de> for FieldType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for FieldType
impl StructuralPartialEq for FieldType
Auto Trait Implementations§
impl Forget for FieldType
impl Freeze for FieldType
impl Move for FieldType
impl RefUnwindSafe for FieldType
impl Send for FieldType
impl Sync for FieldType
impl Unpin for FieldType
impl UnsafeUnpin for FieldType
impl UnwindSafe for FieldType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.