Struct ra_ap_hir::MacroFileId
source · pub struct MacroFileId {
pub macro_call_id: MacroCallId,
}Fields§
§macro_call_id: MacroCallIdTrait Implementations§
source§impl Clone for MacroFileId
impl Clone for MacroFileId
source§fn clone(&self) -> MacroFileId
fn clone(&self) -> MacroFileId
Returns a copy 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 moresource§impl Debug for MacroFileId
impl Debug for MacroFileId
source§impl From<MacroFileId> for HirFileId
impl From<MacroFileId> for HirFileId
source§fn from(_: MacroFileId) -> HirFileId
fn from(_: MacroFileId) -> HirFileId
Converts to this type from the input type.
source§impl Hash for MacroFileId
impl Hash for MacroFileId
source§impl MacroFileIdExt for MacroFileId
impl MacroFileIdExt for MacroFileId
source§fn expansion_info(self, db: &dyn ExpandDatabase) -> ExpansionInfo
fn expansion_info(self, db: &dyn ExpandDatabase) -> ExpansionInfo
Return expansion information if it is a macro-expansion file
source§fn call_node(
self,
db: &dyn ExpandDatabase,
) -> InFileWrapper<HirFileId, SyntaxNode<RustLanguage>>
fn call_node( self, db: &dyn ExpandDatabase, ) -> InFileWrapper<HirFileId, SyntaxNode<RustLanguage>>
If this is a macro call, returns the syntax node of the call.
fn expansion_level(self, db: &dyn ExpandDatabase) -> u32
fn parent(self, db: &dyn ExpandDatabase) -> HirFileId
fn is_custom_derive(&self, db: &dyn ExpandDatabase) -> bool
fn is_builtin_derive(&self, db: &dyn ExpandDatabase) -> bool
source§fn is_include_macro(&self, db: &dyn ExpandDatabase) -> bool
fn is_include_macro(&self, db: &dyn ExpandDatabase) -> bool
Return whether this file is an include macro
fn is_include_like_macro(&self, db: &dyn ExpandDatabase) -> bool
fn is_env_or_option_env(&self, db: &dyn ExpandDatabase) -> bool
fn is_eager(&self, db: &dyn ExpandDatabase) -> bool
fn eager_arg(&self, db: &dyn ExpandDatabase) -> Option<MacroCallId>
source§fn is_attr_macro(&self, db: &dyn ExpandDatabase) -> bool
fn is_attr_macro(&self, db: &dyn ExpandDatabase) -> bool
Return whether this file is an attr macro
source§fn is_derive_attr_pseudo_expansion(&self, db: &dyn ExpandDatabase) -> bool
fn is_derive_attr_pseudo_expansion(&self, db: &dyn ExpandDatabase) -> bool
Return whether this file is the pseudo expansion of the derive attribute.
See [
crate::builtin_attr_macro::derive_attr_expand].source§impl PartialEq for MacroFileId
impl PartialEq for MacroFileId
impl Copy for MacroFileId
impl Eq for MacroFileId
impl StructuralPartialEq for MacroFileId
Auto Trait Implementations§
impl Freeze for MacroFileId
impl RefUnwindSafe for MacroFileId
impl Send for MacroFileId
impl Sync for MacroFileId
impl Unpin for MacroFileId
impl UnwindSafe for MacroFileId
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> Cast for T
impl<T> Cast for T
source§fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
Cast a value to type
U using CastTo.source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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