Struct cairo_lang_lowering::objects::StatementLiteral
source · pub struct StatementLiteral {
pub ty: TypeId,
pub value: BigInt,
pub output: VariableId,
}
Expand description
A statement that binds a literal value to a variable.
Fields§
§ty: TypeId
The type of the literal.
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<StatementLiteral> for StatementLiteral
impl PartialEq<StatementLiteral> 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 StructuralEq 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<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.