[−][src]Struct ra_ap_hir_expand::ast_id_map::AstIdMap
Maps items' SyntaxNode
s to ErasedFileAstId
s and back.
Implementations
impl AstIdMap
[src]
pub fn ast_id<N: AstNode>(&self, item: &N) -> FileAstId<N>
[src]
pub fn get<N: AstNode>(&self, id: FileAstId<N>) -> AstPtr<N>
[src]
Trait Implementations
impl Debug for AstIdMap
[src]
impl Default for AstIdMap
[src]
impl Eq for AstIdMap
[src]
impl PartialEq<AstIdMap> for AstIdMap
[src]
impl StructuralEq for AstIdMap
[src]
impl StructuralPartialEq for AstIdMap
[src]
Auto Trait Implementations
impl RefUnwindSafe for AstIdMap
impl Send for AstIdMap
impl Sync for AstIdMap
impl Unpin for AstIdMap
impl UnwindSafe for AstIdMap
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, 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>,