[][src]Struct ra_ap_hir::Crate

pub struct Crate { /* fields omitted */ }

hir::Crate describes a single crate. It's the main interface with which a crate's dependencies interact. Mostly, it should be just a proxy for the root module.

Implementations

impl Crate[src]

pub fn dependencies(self, db: &dyn HirDatabase) -> Vec<CrateDependency>[src]

pub fn reverse_dependencies(self, db: &dyn HirDatabase) -> Vec<Crate>[src]

pub fn root_module(self, db: &dyn HirDatabase) -> Module[src]

pub fn root_file(self, db: &dyn HirDatabase) -> FileId[src]

pub fn edition(self, db: &dyn HirDatabase) -> Edition[src]

pub fn display_name(self, db: &dyn HirDatabase) -> Option<CrateDisplayName>[src]

pub fn query_external_importables(
    self,
    db: &dyn DefDatabase,
    query: &str
) -> impl Iterator<Item = Either<ModuleDef, MacroDef>>
[src]

pub fn all(db: &dyn HirDatabase) -> Vec<Crate>[src]

pub fn get_html_root_url(self: &Crate, db: &dyn HirDatabase) -> Option<String>[src]

Try to get the root URL of the documentation of a crate.

Trait Implementations

impl Clone for Crate[src]

impl Copy for Crate[src]

impl Debug for Crate[src]

impl Eq for Crate[src]

impl From<Crate> for CrateId[src]

impl From<CrateId> for Crate[src]

impl Hash for Crate[src]

impl PartialEq<Crate> for Crate[src]

impl StructuralEq for Crate[src]

impl StructuralPartialEq for Crate[src]

Auto Trait Implementations

impl RefUnwindSafe for Crate

impl Send for Crate

impl Sync for Crate

impl Unpin for Crate

impl UnwindSafe for Crate

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Cast for T

impl<T> CloneAny for T where
    T: Clone + Any

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.