Struct ra_ap_hir_expand::ExpansionInfo [−][src]
pub struct ExpansionInfo { /* fields omitted */ }
Expand description
ExpansionInfo mainly describes how to map text range between src and expanded macro
Implementations
pub fn map_token_down(
&self,
db: &dyn AstDatabase,
item: Option<Item>,
token: InFile<&SyntaxToken>
) -> Option<impl Iterator<Item = InFile<SyntaxToken>> + '_>
pub fn map_token_up(
&self,
db: &dyn AstDatabase,
token: InFile<&SyntaxToken>
) -> Option<(InFile<SyntaxToken>, Origin)>
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more