Struct cairo_lang_semantic::expr::objects::ExprLiteral
source · pub struct ExprLiteral {
pub value: BigInt,
pub numeric_impl: ImplId,
pub ty: TypeId,
pub stable_ptr: ExprPtr,
}
Fields§
§value: BigInt
§numeric_impl: ImplId
§ty: TypeId
§stable_ptr: ExprPtr
Trait Implementations§
source§impl Clone for ExprLiteral
impl Clone for ExprLiteral
source§fn clone(&self) -> ExprLiteral
fn clone(&self) -> ExprLiteral
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 ExprLiteral
impl Debug for ExprLiteral
source§impl<'a, T: ?Sized + Upcast<ExprFormatter<'a>>> DebugWithDb<T> for ExprLiteral
impl<'a, T: ?Sized + Upcast<ExprFormatter<'a>>> DebugWithDb<T> for ExprLiteral
source§impl Hash for ExprLiteral
impl Hash for ExprLiteral
source§impl PartialEq for ExprLiteral
impl PartialEq for ExprLiteral
source§fn eq(&self, other: &ExprLiteral) -> bool
fn eq(&self, other: &ExprLiteral) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: SemanticRewriter<ImplId, Error> + SemanticRewriter<TypeId, Error>, Error> SemanticObject<T, Error> for ExprLiteral
impl<T: SemanticRewriter<ImplId, Error> + SemanticRewriter<TypeId, Error>, Error> SemanticObject<T, Error> for ExprLiteral
fn default_rewrite(self, rewriter: &mut T) -> Result<Self, Error>
source§impl<'a> SemanticRewriter<ExprLiteral, NoError> for Inference<'a>
impl<'a> SemanticRewriter<ExprLiteral, NoError> for Inference<'a>
fn rewrite(&mut self, value: ExprLiteral) -> Result<ExprLiteral, NoError>
impl Eq for ExprLiteral
impl StructuralEq for ExprLiteral
impl StructuralPartialEq for ExprLiteral
Auto Trait Implementations§
impl RefUnwindSafe for ExprLiteral
impl Send for ExprLiteral
impl Sync for ExprLiteral
impl Unpin for ExprLiteral
impl UnwindSafe for ExprLiteral
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.§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,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.