Struct cairo_lang_semantic::items::imp::ImplLookupContext
source · pub struct ImplLookupContext {
pub modules: BTreeSet<ModuleIdById>,
pub generic_params: Vec<GenericParamId>,
}
Fields§
§modules: BTreeSet<ModuleIdById>
§generic_params: Vec<GenericParamId>
Implementations§
source§impl ImplLookupContext
impl ImplLookupContext
pub fn new( module_id: ModuleId, generic_params: Vec<GenericParamId> ) -> ImplLookupContext
pub fn insert_module(&mut self, module_id: ModuleId) -> bool
Trait Implementations§
source§impl Clone for ImplLookupContext
impl Clone for ImplLookupContext
source§fn clone(&self) -> ImplLookupContext
fn clone(&self) -> ImplLookupContext
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 ImplLookupContext
impl Debug for ImplLookupContext
source§impl<'a, T: ?Sized + Upcast<dyn SemanticGroup + 'static>> DebugWithDb<T> for ImplLookupContext
impl<'a, T: ?Sized + Upcast<dyn SemanticGroup + 'static>> DebugWithDb<T> for ImplLookupContext
source§impl Hash for ImplLookupContext
impl Hash for ImplLookupContext
source§impl PartialEq for ImplLookupContext
impl PartialEq for ImplLookupContext
source§fn eq(&self, other: &ImplLookupContext) -> bool
fn eq(&self, other: &ImplLookupContext) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ImplLookupContext
impl StructuralEq for ImplLookupContext
impl StructuralPartialEq for ImplLookupContext
Auto Trait Implementations§
impl RefUnwindSafe for ImplLookupContext
impl Send for ImplLookupContext
impl Sync for ImplLookupContext
impl Unpin for ImplLookupContext
impl UnwindSafe for ImplLookupContext
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.