Struct ra_ap_project_model::Sysroot[][src]

pub struct Sysroot { /* fields omitted */ }

Implementations

impl Sysroot[src]

pub fn public_deps(
    &self
) -> impl Iterator<Item = (&'static str, Idx<SysrootCrateData>)> + '_
[src]

pub fn proc_macro(&self) -> Option<Idx<SysrootCrateData>>[src]

pub fn crates<'a>(
    &'a self
) -> impl Iterator<Item = Idx<SysrootCrateData>> + ExactSizeIterator + 'a
[src]

pub fn discover(cargo_toml: &AbsPath) -> Result<Sysroot>[src]

pub fn discover_rustc(cargo_toml: &AbsPath) -> Option<AbsPathBuf>[src]

pub fn load(sysroot_src_dir: &AbsPath) -> Result<Sysroot>[src]

Trait Implementations

impl Clone for Sysroot[src]

impl Debug for Sysroot[src]

impl Default for Sysroot[src]

impl Eq for Sysroot[src]

impl Index<Idx<SysrootCrateData>> for Sysroot[src]

type Output = SysrootCrateData

The returned type after indexing.

impl PartialEq<Sysroot> for Sysroot[src]

impl StructuralEq for Sysroot[src]

impl StructuralPartialEq for Sysroot[src]

Auto Trait Implementations

impl RefUnwindSafe for Sysroot

impl Send for Sysroot

impl Sync for Sysroot

impl Unpin for Sysroot

impl UnwindSafe for Sysroot

Blanket Implementations

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

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

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

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, 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.