Struct geo_aid::script::unroll::FlagSetConstructor
source · pub struct FlagSetConstructor {
pub flags: Vec<(String, Flag)>,
}Fields§
§flags: Vec<(String, Flag)>Implementations§
source§impl FlagSetConstructor
impl FlagSetConstructor
pub fn new() -> Self
pub fn add_ident<S: ToString>(self, name: &S) -> Self
pub fn add_ident_def<S: ToString>(self, name: &S, default: &S) -> Self
pub fn add_bool<S: ToString>(self, name: &S) -> Self
pub fn add_bool_def<S: ToString>(self, name: &S, default: bool) -> Self
pub fn add_set<S: ToString>(self, name: &S, set: FlagSetConstructor) -> Self
pub fn finish(self) -> FlagSet
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for FlagSetConstructor
impl Send for FlagSetConstructor
impl Sync for FlagSetConstructor
impl Unpin for FlagSetConstructor
impl UnwindSafe for FlagSetConstructor
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