[−][src]Struct ergo_lib::ast::Constant
Constant
Fields
tpe: SType
Constant type
v: ConstantVal
Constant value
Implementations
impl Constant
[src]
pub fn base16_str(&self) -> String
[src]
Serialized bytes encoded as Base16
Trait Implementations
impl Clone for Constant
[src]
impl Debug for Constant
[src]
impl<'de> Deserialize<'de> for Constant
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for Constant
[src]
impl From<Constant> for Base16EncodedBytes
[src]
fn from(v: Constant) -> Base16EncodedBytes
[src]
impl From<EcPoint> for Constant
[src]
impl From<SigmaProp> for Constant
[src]
impl<T: LiftIntoSType + StoredNonPrimitive + Into<ConstantVal>> From<Vec<T>> for Constant
[src]
impl From<Vec<i8>> for Constant
[src]
impl From<Vec<u8>> for Constant
[src]
impl From<bool> for Constant
[src]
impl From<i16> for Constant
[src]
impl From<i32> for Constant
[src]
impl From<i64> for Constant
[src]
impl From<i8> for Constant
[src]
impl PartialEq<Constant> for Constant
[src]
impl Serialize for Constant
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl SigmaSerializable for Constant
[src]
fn sigma_serialize<W: SigmaByteWrite>(&self, w: &mut W) -> Result<(), Error>
[src]
fn sigma_parse<R: SigmaByteRead>(r: &mut R) -> Result<Self, SerializationError>
[src]
fn sigma_serialize_bytes(&self) -> Vec<u8>
[src]
fn sigma_parse_bytes(bytes: Vec<u8>) -> Result<Self, SerializationError>
[src]
impl StructuralEq for Constant
[src]
impl StructuralPartialEq for Constant
[src]
impl<T: TryExtractFrom<ConstantVal>> TryExtractFrom<Constant> for T
[src]
fn try_extract_from(cv: Constant) -> Result<Self, TryExtractFromError>
[src]
impl<T: TryExtractFrom<ConstantVal> + StoredNonPrimitive + LiftIntoSType> TryExtractFrom<Constant> for Vec<T>
[src]
fn try_extract_from(c: Constant) -> Result<Self, TryExtractFromError>
[src]
impl TryExtractFrom<Constant> for Vec<i8>
[src]
fn try_extract_from(c: Constant) -> Result<Self, TryExtractFromError>
[src]
impl TryExtractFrom<Constant> for Vec<u8>
[src]
fn try_extract_from(cv: Constant) -> Result<Self, TryExtractFromError>
[src]
impl TryFrom<Base16DecodedBytes> for Constant
[src]
type Error = SerializationError
The type returned in the event of a conversion error.
fn try_from(bytes: Base16DecodedBytes) -> Result<Self, Self::Error>
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Constant
impl !Send for Constant
impl !Sync for Constant
impl Unpin for Constant
impl !UnwindSafe for Constant
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,