pub struct DetachedItem<K = DetachedItemKind> {
    pub attrs: Vec<Attr>,
    pub path: ExprPath,
    pub kind: K,
    pub node_id: NodeId,
}Fields§
§attrs: Vec<Attr>§path: ExprPath§kind: K§node_id: NodeIdImplementations§
Source§impl<K> DetachedItem<K>
 
impl<K> DetachedItem<K>
pub fn map_kind<R>(self, f: impl FnOnce(K) -> R) -> DetachedItem<R>
Trait Implementations§
Auto Trait Implementations§
impl<K> Freeze for DetachedItem<K>where
    K: Freeze,
impl<K> RefUnwindSafe for DetachedItem<K>where
    K: RefUnwindSafe,
impl<K> Send for DetachedItem<K>where
    K: Send,
impl<K> Sync for DetachedItem<K>where
    K: Sync,
impl<K> Unpin for DetachedItem<K>where
    K: Unpin,
impl<K> UnwindSafe for DetachedItem<K>where
    K: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more