Enum ra_ap_hir_expand::MacroCallKind [−][src]
pub enum MacroCallKind { FnLike { ast_id: AstId<MacroCall>, fragment: FragmentKind, }, Derive { ast_id: AstId<Item>, derive_name: String, derive_attr_index: u32, }, }
Variants
Show fields
Fields of FnLike
ast_id: AstId<MacroCall>
fragment: FragmentKind
Show fields
Implementations
impl MacroCallKind
[src]
impl MacroCallKind
[src]pub fn to_node(&self, db: &dyn AstDatabase) -> InFile<SyntaxNode>
[src]
Trait Implementations
impl Clone for MacroCallKind
[src]
impl Clone for MacroCallKind
[src]fn clone(&self) -> MacroCallKind
[src]
fn clone(&self) -> MacroCallKind
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for MacroCallKind
[src]
impl Debug for MacroCallKind
[src]impl Hash for MacroCallKind
[src]
impl Hash for MacroCallKind
[src]impl PartialEq<MacroCallKind> for MacroCallKind
[src]
impl PartialEq<MacroCallKind> for MacroCallKind
[src]fn eq(&self, other: &MacroCallKind) -> bool
[src]
fn eq(&self, other: &MacroCallKind) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &MacroCallKind) -> bool
[src]
fn ne(&self, other: &MacroCallKind) -> bool
[src]This method tests for !=
.
impl Eq for MacroCallKind
[src]
impl StructuralEq for MacroCallKind
[src]
impl StructuralPartialEq for MacroCallKind
[src]
Auto Trait Implementations
impl RefUnwindSafe for MacroCallKind
impl Send for MacroCallKind
impl Sync for MacroCallKind
impl Unpin for MacroCallKind
impl UnwindSafe for MacroCallKind
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more