pub struct RecordField {
pub docs: Vec<Spanned<String>>,
pub vis: Visibility,
pub name: Spanned<String>,
pub ty: Spanned<Type>,
}Expand description
A single field inside a record { ... } body.
Fields§
§docs: Vec<Spanned<String>>The /// lines before it, one entry per line, holding the text after
the /// (spec
docs/superpowers/specs/2026-10-07-phase-3-1-formatter-design.md §4).
vis: Visibility§name: Spanned<String>§ty: Spanned<Type>Trait Implementations§
Source§impl Clone for RecordField
impl Clone for RecordField
Auto Trait Implementations§
impl Freeze for RecordField
impl RefUnwindSafe for RecordField
impl Send for RecordField
impl Sync for RecordField
impl Unpin for RecordField
impl UnsafeUnpin for RecordField
impl UnwindSafe for RecordField
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