Struct ra_ap_ide_db::helpers::FamousDefs [−][src]
pub struct FamousDefs<'a, 'b>(pub &'a Semantics<'b, RootDatabase>, pub Option<Crate>);
Expand description
Helps with finding well-know things inside the standard library. This is somewhat similar to the known paths infra inside hir, but it different; We want to make sure that IDE specific paths don’t become interesting inside the compiler itself as well.
Implementations
impl FamousDefs<'_, '_>
[src]
impl FamousDefs<'_, '_>
[src]pub const FIXTURE: &'static str
[src]
pub fn std(&self) -> Option<Crate>
[src]
pub fn core(&self) -> Option<Crate>
[src]
pub fn core_cmp_Ord(&self) -> Option<Trait>
[src]
pub fn core_convert_From(&self) -> Option<Trait>
[src]
pub fn core_convert_Into(&self) -> Option<Trait>
[src]
pub fn core_option_Option(&self) -> Option<Enum>
[src]
pub fn core_default_Default(&self) -> Option<Trait>
[src]
pub fn core_iter_Iterator(&self) -> Option<Trait>
[src]
pub fn core_iter(&self) -> Option<Module>
[src]
pub fn core_ops_Deref(&self) -> Option<Trait>
[src]
Auto Trait Implementations
impl<'a, 'b> !RefUnwindSafe for FamousDefs<'a, 'b>
impl<'a, 'b> !Send for FamousDefs<'a, 'b>
impl<'a, 'b> !Sync for FamousDefs<'a, 'b>
impl<'a, 'b> Unpin for FamousDefs<'a, 'b> where
'b: 'a,
'b: 'a,
impl<'a, 'b> !UnwindSafe for FamousDefs<'a, 'b>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Cast for T
impl<T> Cast for T
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: &<U as HasInterner>::Interner) -> U where
Self: CastTo<U>,
U: HasInterner,
Cast a value to type U
using CastTo
.
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Any for T where
T: Any,
T: Any,