Struct LibraryRoots
pub struct LibraryRoots(pub(crate) Id);Expand description
base_db is normally also needed in places where ide_db is used, so this re-export is for convenience.
The set of roots for crates.io libraries.
Files in libraries are assumed to never change.
Tuple Fields§
§0: IdImplementations§
§impl LibraryRoots
impl LibraryRoots
pub fn ingredient( db: &(dyn Database + 'static), ) -> &IngredientImpl<LibraryRoots>
pub fn ingredient_mut( zalsa_mut: &mut Zalsa, ) -> (&mut IngredientImpl<LibraryRoots>, &mut Runtime)
§impl LibraryRoots
impl LibraryRoots
pub fn new<Db_>(
db: &Db_,
roots: HashSet<SourceRootId, FxBuildHasher>,
) -> LibraryRootswhere
Db_: Database + ?Sized,
pub fn builder( roots: HashSet<SourceRootId, FxBuildHasher>, ) -> <LibraryRoots as HasBuilder>::Builder
pub fn roots<Db_, 'db>(
self,
db: &'db Db_,
) -> &'db HashSet<SourceRootId, FxBuildHasher>where
Db_: Database + ?Sized,
pub fn set_roots<Db_, 'db>(
self,
db: &'db mut Db_,
) -> impl Setter<FieldTy = HashSet<SourceRootId, FxBuildHasher>> + use<'db, Db_>where
Db_: Database + ?Sized,
pub fn try_get<Db_>(db: &Db_) -> Option<LibraryRoots>where
Db_: Database + ?Sized,
pub fn get<Db_>(db: &Db_) -> LibraryRootswhere
Db_: Database + ?Sized,
pub fn default_debug_fmt(
this: LibraryRoots,
f: &mut Formatter<'_>,
) -> Result<(), Error>
pub fn default_debug_fmt( this: LibraryRoots, f: &mut Formatter<'_>, ) -> Result<(), Error>
Default debug formatting for this struct (may be useful if you define your own Debug impl)
Trait Implementations§
§impl Clone for LibraryRoots
impl Clone for LibraryRoots
§fn clone(&self) -> LibraryRoots
fn clone(&self) -> LibraryRoots
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for LibraryRoots
impl Debug for LibraryRoots
§impl Hash for LibraryRoots
impl Hash for LibraryRoots
§impl PartialEq for LibraryRoots
impl PartialEq for LibraryRoots
§impl Update for LibraryRoots
impl Update for LibraryRoots
§unsafe fn maybe_update(
old_pointer: *mut LibraryRoots,
new_value: LibraryRoots,
) -> bool
unsafe fn maybe_update( old_pointer: *mut LibraryRoots, new_value: LibraryRoots, ) -> bool
Returns Read more
impl Copy for LibraryRoots
impl Eq for LibraryRoots
impl StructuralPartialEq for LibraryRoots
Auto Trait Implementations§
impl Freeze for LibraryRoots
impl RefUnwindSafe for LibraryRoots
impl Send for LibraryRoots
impl Sync for LibraryRoots
impl Unpin for LibraryRoots
impl UnwindSafe for LibraryRoots
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more