Struct cairo_lang_semantic::items::imp::TraitFilter
source · pub struct TraitFilter {
pub trait_id: TraitId,
pub generics_filter: GenericsHeadFilter,
}
Expand description
A filter for trait lookup that is not based on current inference state. This is used for caching queries.
Fields§
§trait_id: TraitId
§generics_filter: GenericsHeadFilter
The filter on the generic arguments.
Trait Implementations§
source§impl Clone for TraitFilter
impl Clone for TraitFilter
source§fn clone(&self) -> TraitFilter
fn clone(&self) -> TraitFilter
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 TraitFilter
impl Debug for TraitFilter
source§impl Hash for TraitFilter
impl Hash for TraitFilter
source§impl PartialEq for TraitFilter
impl PartialEq for TraitFilter
source§fn eq(&self, other: &TraitFilter) -> bool
fn eq(&self, other: &TraitFilter) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TraitFilter
impl StructuralEq for TraitFilter
impl StructuralPartialEq for TraitFilter
Auto Trait Implementations§
impl RefUnwindSafe for TraitFilter
impl Send for TraitFilter
impl Sync for TraitFilter
impl Unpin for TraitFilter
impl UnwindSafe for TraitFilter
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.