pub struct DocMacro {
pub name: String,
pub params: String,
pub expansion: String,
pub comment: String,
pub place: DocPlace,
}Expand description
A macro: #define TWICE(x) ((x) * 2).
Fields§
§name: StringIts name.
params: StringIts parameters, in their parentheses, if it has any: (x).
expansion: StringWhat it stands for, its lines joined.
comment: StringThe comment above it, without its comment marks.
place: DocPlaceWhere it is defined.
Trait Implementations§
Auto Trait Implementations§
impl Forget for DocMacro
impl Freeze for DocMacro
impl Move for DocMacro
impl RefUnwindSafe for DocMacro
impl Send for DocMacrowhere
RawVecInner: Send,
impl Sync for DocMacrowhere
RawVecInner: Sync,
impl Unpin for DocMacro
impl UnsafeUnpin for DocMacro
impl UnwindSafe for DocMacrowhere
RawVecInner: 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