pub struct AttachStrDef {
pub span: Span,
pub fields: Vec<Box<str>>,
pub names: Vec<Option<Box<str>>>,
pub leading_trivia: Vec<TriviaToken>,
}Expand description
attach names [ cc ] [ "eq" "ne" ... ]; — gives fields display names.
Purely a display attachment: the field’s numeric value is unchanged, but
the display section prints the corresponding name. The list is indexed by
field value and must have 2^width entries.
Fields§
§span: SpanSpan of the whole attach names ...; statement.
fields: Vec<Box<str>>Names of the fields the table is attached to.
names: Vec<Option<Box<str>>>One entry per field value; None is an _ slot with no name attached.
leading_trivia: Vec<TriviaToken>Whitespace and comments between the previous item and this one, kept so the formatter can reprint them.
Trait Implementations§
Source§impl Clone for AttachStrDef
impl Clone for AttachStrDef
Auto Trait Implementations§
impl Freeze for AttachStrDef
impl RefUnwindSafe for AttachStrDef
impl Send for AttachStrDef
impl Sync for AttachStrDef
impl Unpin for AttachStrDef
impl UnsafeUnpin for AttachStrDef
impl UnwindSafe for AttachStrDef
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