[−][src]Struct ergo_headless_dapp_framework::Constant
Constant
Fields
tpe: SType
Constant type
v: Value
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]
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Constant, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Constant, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Eq for Constant
[src]
impl From<Constant> for Constant
[src]
impl From<EcPoint> for Constant
[src]
impl From<SigmaProp> for Constant
[src]
impl<T> From<Vec<T, Global>> for Constant where
T: StoredNonPrimitive + LiftIntoSType + Into<Value>,
[src]
T: StoredNonPrimitive + LiftIntoSType + Into<Value>,
impl From<Vec<i8, Global>> for Constant
[src]
impl From<Vec<u8, Global>> 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]
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl SigmaSerializable for Constant
[src]
pub fn sigma_serialize<W>(&self, w: &mut W) -> Result<(), Error> where
W: SigmaByteWrite,
[src]
W: SigmaByteWrite,
pub fn sigma_parse<R>(r: &mut R) -> Result<Constant, SerializationError> where
R: SigmaByteRead,
[src]
R: SigmaByteRead,
pub fn sigma_serialize_bytes(&self) -> Vec<u8, Global>
[src]
pub fn sigma_parse_bytes(
bytes: Vec<u8, Global>
) -> Result<Self, SerializationError>
[src]
bytes: Vec<u8, Global>
) -> Result<Self, SerializationError>
impl StructuralEq for Constant
[src]
impl StructuralPartialEq for Constant
[src]
impl<T> TryExtractFrom<Constant> for T where
T: TryExtractFrom<Value>,
[src]
T: TryExtractFrom<Value>,
pub fn try_extract_from(cv: Constant) -> Result<T, TryExtractFromError>
[src]
impl TryFrom<Base16DecodedBytes> for Constant
[src]
type Error = SerializationError
The type returned in the event of a conversion error.
pub fn try_from(
bytes: Base16DecodedBytes
) -> Result<Constant, <Constant as TryFrom<Base16DecodedBytes>>::Error>
[src]
bytes: Base16DecodedBytes
) -> Result<Constant, <Constant as TryFrom<Base16DecodedBytes>>::Error>
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> TryExtractFrom<Constant> for T where
T: TryExtractFrom<Value>,
[src]
T: TryExtractFrom<Value>,
pub fn try_extract_from(cv: Constant) -> Result<T, TryExtractFromError>
[src]
impl<T> TryExtractFrom<Constant> for T where
T: TryExtractFrom<Value>,
[src]
T: TryExtractFrom<Value>,
pub fn try_extract_from(cv: Constant) -> Result<T, TryExtractFromError>
[src]
impl<T> TryExtractFrom<Constant> for T where
T: TryExtractFrom<Value>,
[src]
T: TryExtractFrom<Value>,
pub fn try_extract_from(cv: Constant) -> Result<T, TryExtractFromError>
[src]
impl<T> TryExtractFrom<Constant> for T where
T: TryExtractFrom<Value>,
[src]
T: TryExtractFrom<Value>,
pub fn try_extract_from(cv: Constant) -> Result<T, TryExtractFromError>
[src]
impl<T> TryExtractFrom<Constant> for T where
T: TryExtractFrom<Value>,
[src]
T: TryExtractFrom<Value>,
pub fn try_extract_from(cv: Constant) -> Result<T, TryExtractFromError>
[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>,