pub struct Flag<'a> {
pub name: &'a str,
pub description: Option<&'a str>,
pub default: Option<bool>,
pub manual: Option<bool>,
pub other_fields: Vec<Field<'a>>,
pub cst_node: NodeId,
}Expand description
A flag section.
Fields§
§name: &'a strThe flag name.
description: Option<&'a str>Description, if present.
default: Option<bool>Default value, if present.
manual: Option<bool>Whether the flag is manual.
other_fields: Vec<Field<'a>>All other fields.
cst_node: NodeIdBack-reference to the CST section node.
Trait Implementations§
impl<'a> Eq for Flag<'a>
impl<'a> StructuralPartialEq for Flag<'a>
Auto Trait Implementations§
impl<'a> Freeze for Flag<'a>
impl<'a> RefUnwindSafe for Flag<'a>
impl<'a> Send for Flag<'a>
impl<'a> Sync for Flag<'a>
impl<'a> Unpin for Flag<'a>
impl<'a> UnsafeUnpin for Flag<'a>
impl<'a> UnwindSafe for Flag<'a>
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