Enum cairo_lang_casm::hints::StarknetHint
source · pub enum StarknetHint {
Show 13 variants
SystemCall {
system: ResOperand,
},
SetBlockNumber {
value: ResOperand,
},
SetBlockTimestamp {
value: ResOperand,
},
SetCallerAddress {
value: ResOperand,
},
SetContractAddress {
value: ResOperand,
},
SetSequencerAddress {
value: ResOperand,
},
SetVersion {
value: ResOperand,
},
SetAccountContractAddress {
value: ResOperand,
},
SetMaxFee {
value: ResOperand,
},
SetTransactionHash {
value: ResOperand,
},
SetChainId {
value: ResOperand,
},
SetNonce {
value: ResOperand,
},
SetSignature {
start: ResOperand,
end: ResOperand,
},
}
Expand description
Represents a hint that triggers a system call.
Variants§
SystemCall
Fields
§
system: ResOperand
SetBlockNumber
Fields
§
value: ResOperand
SetBlockTimestamp
Fields
§
value: ResOperand
SetCallerAddress
Fields
§
value: ResOperand
SetContractAddress
Fields
§
value: ResOperand
SetSequencerAddress
Fields
§
value: ResOperand
SetVersion
Fields
§
value: ResOperand
SetAccountContractAddress
Fields
§
value: ResOperand
SetMaxFee
Fields
§
value: ResOperand
SetTransactionHash
Fields
§
value: ResOperand
SetChainId
Fields
§
value: ResOperand
SetNonce
Fields
§
value: ResOperand
SetSignature
Trait Implementations§
source§impl Clone for StarknetHint
impl Clone for StarknetHint
source§fn clone(&self) -> StarknetHint
fn clone(&self) -> StarknetHint
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StarknetHint
impl Debug for StarknetHint
source§impl<'de> Deserialize<'de> for StarknetHint
impl<'de> Deserialize<'de> for StarknetHint
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
source§impl Display for StarknetHint
impl Display for StarknetHint
source§impl From<StarknetHint> for Hint
impl From<StarknetHint> for Hint
source§fn from(value: StarknetHint) -> Self
fn from(value: StarknetHint) -> Self
Converts to this type from the input type.
source§impl PartialEq<StarknetHint> for StarknetHint
impl PartialEq<StarknetHint> for StarknetHint
source§fn eq(&self, other: &StarknetHint) -> bool
fn eq(&self, other: &StarknetHint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StarknetHint
impl Serialize for StarknetHint
impl Eq for StarknetHint
impl StructuralEq for StarknetHint
impl StructuralPartialEq for StarknetHint
Auto Trait Implementations§
impl RefUnwindSafe for StarknetHint
impl Send for StarknetHint
impl Sync for StarknetHint
impl Unpin for StarknetHint
impl UnwindSafe for StarknetHint
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.