Struct ProcMacros
pub struct ProcMacros(Id);Expand description
The proc macros. Do not use Self::get! Use Self::get_for_crate instead.
Tuple Fields§
§0: IdImplementations§
§impl ProcMacros
impl ProcMacros
pub fn ingredient(db: &(dyn Database + 'static)) -> &IngredientImpl<ProcMacros>
pub fn ingredient_mut( zalsa_mut: &mut Zalsa, ) -> (&mut IngredientImpl<ProcMacros>, &mut Runtime)
§impl ProcMacros
impl ProcMacros
pub fn new<Db_>(
db: &Db_,
by_crate: HashMap<Crate, Arc<CrateProcMacros>, FxBuildHasher>,
) -> ProcMacroswhere
Db_: Database + ?Sized,
pub fn builder( by_crate: HashMap<Crate, Arc<CrateProcMacros>, FxBuildHasher>, ) -> <ProcMacros as HasBuilder>::Builder
pub fn by_crate<'db, Db_>(
self,
db: &'db Db_,
) -> &'db HashMap<Crate, Arc<CrateProcMacros>, FxBuildHasher>where
Db_: Database + ?Sized,
pub fn set_by_crate<'db, Db_>(
self,
db: &'db mut Db_,
) -> impl Setter<FieldTy = HashMap<Crate, Arc<CrateProcMacros>, FxBuildHasher>>where
Db_: Database + ?Sized,
pub fn try_get<Db_>(db: &Db_) -> Option<ProcMacros>where
Db_: Database + ?Sized,
pub fn get<Db_>(db: &Db_) -> ProcMacroswhere
Db_: Database + ?Sized,
pub fn default_debug_fmt(
this: ProcMacros,
f: &mut Formatter<'_>,
) -> Result<(), Error>
pub fn default_debug_fmt( this: ProcMacros, f: &mut Formatter<'_>, ) -> Result<(), Error>
Default debug formatting for this struct (may be useful if you define your own Debug impl)
§impl ProcMacros
impl ProcMacros
pub fn init_default(db: &(dyn SourceDatabase + 'static), durability: Durability)
§impl ProcMacros
impl ProcMacros
pub fn get_for_crate<'db>(
db: &'db (dyn SourceDatabase + 'static),
krate: Crate,
) -> <Option<Arc<CrateProcMacros>> as SalsaAsRef>::AsRef<'db>
pub fn get_for_crate<'db>( db: &'db (dyn SourceDatabase + 'static), krate: Crate, ) -> <Option<Arc<CrateProcMacros>> as SalsaAsRef>::AsRef<'db>
Incrementality query to prevent queries from directly depending on Self::get.
Trait Implementations§
§impl Clone for ProcMacros
impl Clone for ProcMacros
§fn clone(&self) -> ProcMacros
fn clone(&self) -> ProcMacros
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProcMacros
impl Debug for ProcMacros
§impl Hash for ProcMacros
impl Hash for ProcMacros
§impl PartialEq for ProcMacros
impl PartialEq for ProcMacros
§impl Update for ProcMacros
impl Update for ProcMacros
§unsafe fn maybe_update(
old_pointer: *mut ProcMacros,
new_value: ProcMacros,
) -> bool
unsafe fn maybe_update( old_pointer: *mut ProcMacros, new_value: ProcMacros, ) -> bool
Returns Read more
impl Copy for ProcMacros
impl Eq for ProcMacros
impl StructuralPartialEq for ProcMacros
Auto Trait Implementations§
impl Freeze for ProcMacros
impl RefUnwindSafe for ProcMacros
impl Send for ProcMacros
impl Sync for ProcMacros
impl Unpin for ProcMacros
impl UnsafeUnpin for ProcMacros
impl UnwindSafe for ProcMacros
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> HashEqLike<T> for T
impl<T> HashEqLike<T> for T
§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