[][src]Struct ra_ap_base_db::SourceRoot

pub struct SourceRoot {
    pub is_library: bool,
    // some fields omitted
}

Fields

is_library: bool

Sysroot or crates.io library.

Libraries are considered mostly immutable, this assumption is used to optimize salsa's query structure

Implementations

impl SourceRoot[src]

pub fn new_local(file_set: FileSet) -> SourceRoot[src]

pub fn new_library(file_set: FileSet) -> SourceRoot[src]

pub fn iter(&self) -> impl Iterator<Item = FileId> + '_[src]

Trait Implementations

impl Clone for SourceRoot[src]

impl Debug for SourceRoot[src]

impl Eq for SourceRoot[src]

impl PartialEq<SourceRoot> for SourceRoot[src]

impl StructuralEq for SourceRoot[src]

impl StructuralPartialEq for SourceRoot[src]

Auto Trait Implementations

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.