pub struct TraitId(/* private fields */);
Implementations§
Source§impl TraitId
impl TraitId
pub fn data(&self, db: &dyn AnalyzerDb) -> Rc<Trait>
pub fn span(&self, db: &dyn AnalyzerDb) -> Span
pub fn name(&self, db: &dyn AnalyzerDb) -> SmolStr
pub fn name_span(&self, db: &dyn AnalyzerDb) -> Span
pub fn is_public(&self, db: &dyn AnalyzerDb) -> bool
pub fn module(&self, db: &dyn AnalyzerDb) -> ModuleId
pub fn as_trait_or_type(&self) -> TraitOrType
pub fn is_implemented_for(&self, db: &dyn AnalyzerDb, ty: TypeId) -> bool
pub fn is_in_std(&self, db: &dyn AnalyzerDb) -> bool
pub fn is_std_trait(&self, db: &dyn AnalyzerDb, name: &str) -> bool
pub fn parent(&self, db: &dyn AnalyzerDb) -> Item
pub fn all_functions(&self, db: &dyn AnalyzerDb) -> Rc<[FunctionSigId]>
pub fn functions( &self, db: &dyn AnalyzerDb, ) -> Rc<IndexMap<SmolStr, FunctionSigId>>
pub fn function(&self, db: &dyn AnalyzerDb, name: &str) -> Option<FunctionSigId>
pub fn sink_diagnostics( &self, db: &dyn AnalyzerDb, sink: &mut impl DiagnosticSink, )
Trait Implementations§
Source§impl InternKey for TraitId
impl InternKey for TraitId
Source§fn from_intern_id(v: InternId) -> Self
fn from_intern_id(v: InternId) -> Self
Create an instance of the intern-key from a
u32
value.Source§fn as_intern_id(&self) -> InternId
fn as_intern_id(&self) -> InternId
Extract the
u32
with which the intern-key was created.Source§impl Ord for TraitId
impl Ord for TraitId
Source§impl PartialOrd for TraitId
impl PartialOrd for TraitId
impl Copy for TraitId
impl Eq for TraitId
impl StructuralPartialEq for TraitId
Auto Trait Implementations§
impl Freeze for TraitId
impl RefUnwindSafe for TraitId
impl Send for TraitId
impl Sync for TraitId
impl Unpin for TraitId
impl UnwindSafe for TraitId
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 Q
impl<Q, K> Equivalent<K> for Q
§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 Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.