Struct cairo_lang_semantic::expr::compute::PatternAndId
source · pub struct PatternAndId {
pub pattern: Pattern,
pub id: PatternId,
}
Fields§
§pattern: Pattern
§id: PatternId
Methods from Deref<Target = Pattern>§
pub fn ty(&self) -> TypeId
pub fn variables(&self, arena: &Arena<Pattern>) -> Vec<PatternVariable>
pub fn stable_ptr(&self) -> PatternPtr
Trait Implementations§
source§impl Clone for PatternAndId
impl Clone for PatternAndId
source§fn clone(&self) -> PatternAndId
fn clone(&self) -> PatternAndId
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 PatternAndId
impl Debug for PatternAndId
Auto Trait Implementations§
impl RefUnwindSafe for PatternAndId
impl Send for PatternAndId
impl Sync for PatternAndId
impl Unpin for PatternAndId
impl UnwindSafe for PatternAndId
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