Struct ra_ap_hir_def::TraitId
source · [−]pub struct TraitId(_);
Trait Implementations
sourceimpl ChildBySource for TraitId
impl ChildBySource for TraitId
fn child_by_source_to(
&self,
db: &dyn DefDatabase,
res: &mut DynMap,
file_id: HirFileId
)
fn child_by_source(&self, db: &dyn DefDatabase, file_id: HirFileId) -> DynMap
sourceimpl From<TraitId> for GenericDefId
impl From<TraitId> for GenericDefId
sourcefn from(it: TraitId) -> GenericDefId
fn from(it: TraitId) -> GenericDefId
Converts to this type from the input type.
sourceimpl From<TraitId> for ModuleDefId
impl From<TraitId> for ModuleDefId
sourcefn from(it: TraitId) -> ModuleDefId
fn from(it: TraitId) -> ModuleDefId
Converts to this type from the input type.
sourceimpl HasResolver for TraitId
impl HasResolver for TraitId
sourcefn resolver(self, db: &dyn DefDatabase) -> Resolver
fn resolver(self, db: &dyn DefDatabase) -> Resolver
Builds a resolver for type references inside this def.
sourceimpl InternKey for TraitId
impl InternKey for TraitId
sourcefn from_intern_id(v: InternId) -> Self
fn from_intern_id(v: InternId) -> Self
Create an instance of the intern-key from a u32
value.
sourcefn as_intern_id(&self) -> InternId
fn as_intern_id(&self) -> InternId
Extract the u32
with which the intern-key was created.
impl Copy for TraitId
impl Eq for TraitId
impl StructuralEq for TraitId
impl StructuralPartialEq for TraitId
Auto Trait Implementations
impl RefUnwindSafe for TraitId
impl Send for TraitId
impl Sync for TraitId
impl Unpin for TraitId
impl UnwindSafe for TraitId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more