Struct cairo_lang_lowering::objects::StatementLiteral
source · pub struct StatementLiteral {
pub value: BigInt,
pub output: VariableId,
}
Expand description
A statement that binds a literal value to a variable.
Fields§
§value: BigInt
The value of the literal.
output: VariableId
The variable to bind the value to.
Trait Implementations§
source§impl Clone for StatementLiteral
impl Clone for StatementLiteral
source§fn clone(&self) -> StatementLiteral
fn clone(&self) -> StatementLiteral
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 StatementLiteral
impl Debug for StatementLiteral
source§impl DebugWithDb<LoweredFormatter<'_>> for StatementLiteral
impl DebugWithDb<LoweredFormatter<'_>> for StatementLiteral
source§impl PartialEq for StatementLiteral
impl PartialEq for StatementLiteral
source§fn eq(&self, other: &StatementLiteral) -> bool
fn eq(&self, other: &StatementLiteral) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for StatementLiteral
impl StructuralPartialEq for StatementLiteral
Auto Trait Implementations§
impl RefUnwindSafe for StatementLiteral
impl Send for StatementLiteral
impl Sync for StatementLiteral
impl Unpin for StatementLiteral
impl UnwindSafe for StatementLiteral
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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.