[−][src]Struct ra_ap_hir_expand::ExpansionInfo
ExpansionInfo mainly describes how to map text range between src and expanded macro
Implementations
impl ExpansionInfo
[src]
pub fn call_node(&self) -> Option<InFile<SyntaxNode>>
[src]
pub fn map_token_down(
&self,
token: InFile<&SyntaxToken>
) -> Option<InFile<SyntaxToken>>
[src]
&self,
token: InFile<&SyntaxToken>
) -> Option<InFile<SyntaxToken>>
pub fn map_token_up(
&self,
token: InFile<&SyntaxToken>
) -> Option<(InFile<SyntaxToken>, Origin)>
[src]
&self,
token: InFile<&SyntaxToken>
) -> Option<(InFile<SyntaxToken>, Origin)>
Trait Implementations
impl Clone for ExpansionInfo
[src]
fn clone(&self) -> ExpansionInfo
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ExpansionInfo
[src]
impl Eq for ExpansionInfo
[src]
impl PartialEq<ExpansionInfo> for ExpansionInfo
[src]
fn eq(&self, other: &ExpansionInfo) -> bool
[src]
fn ne(&self, other: &ExpansionInfo) -> bool
[src]
impl StructuralEq for ExpansionInfo
[src]
impl StructuralPartialEq for ExpansionInfo
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ExpansionInfo
impl !Send for ExpansionInfo
impl !Sync for ExpansionInfo
impl Unpin for ExpansionInfo
impl !UnwindSafe for ExpansionInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,