Struct ra_ap_hir_def::attr::AttrSourceMap [−][src]
pub struct AttrSourceMap { /* fields omitted */ }
Implementations
impl AttrSourceMap
[src]
pub fn source_of(&self, attr: &Attr) -> InFile<&Either<Attr, Comment>>
[src]
Maps the lowered Attr
back to its original syntax node.
attr
must come from the owner
used for AttrSourceMap
Note that the returned syntax node might be a #[cfg_attr]
, or a doc comment, instead of
the attribute represented by Attr
.
Auto Trait Implementations
impl !RefUnwindSafe for AttrSourceMap
impl !Send for AttrSourceMap
impl !Sync for AttrSourceMap
impl Unpin for AttrSourceMap
impl !UnwindSafe for AttrSourceMap
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
[src]
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[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.
pub 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>,