pub struct MultiDeclSlot<P: Phase = Raw> {
pub visibility: Visibility,
pub kind: MultiSlotKind,
pub kind_span: Span,
pub name: Spanned<DeclName>,
pub type_ann: TypeExpr<P>,
pub header_span: Span,
}Expand description
One slot in a multi-decl: kind keyword, name, type annotation, visibility.
Fields§
§visibility: VisibilityVisibility for this slot. The first slot inherits the leading
pub/pub(bind) prefix consumed before the multi-decl was
recognized; subsequent slots accept their own optional prefix
before the kind keyword.
kind: MultiSlotKind§kind_span: SpanSpan covering the kind keyword(s) (param, node, or const node).
name: Spanned<DeclName>§type_ann: TypeExpr<P>§header_span: SpanSpan from kind keyword through end of the type annotation.
Trait Implementations§
Source§impl<P: Clone + Phase> Clone for MultiDeclSlot<P>
impl<P: Clone + Phase> Clone for MultiDeclSlot<P>
Source§fn clone(&self) -> MultiDeclSlot<P>
fn clone(&self) -> MultiDeclSlot<P>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl FormatEquivalent for MultiDeclSlot
impl FormatEquivalent for MultiDeclSlot
Source§fn format_equivalent(&self, other: &Self) -> bool
fn format_equivalent(&self, other: &Self) -> bool
Returns
true if self and other are equivalent up to formatting.Auto Trait Implementations§
impl<P> Freeze for MultiDeclSlot<P>
impl<P> RefUnwindSafe for MultiDeclSlot<P>
impl<P> Send for MultiDeclSlot<P>
impl<P> Sync for MultiDeclSlot<P>
impl<P> Unpin for MultiDeclSlot<P>
impl<P> UnsafeUnpin for MultiDeclSlot<P>
impl<P> UnwindSafe for MultiDeclSlot<P>
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