argh

Trait Flag

Source
pub trait Flag {
    // Required methods
    fn default() -> Self
       where Self: Sized;
    fn set_flag(&mut self);
}
Expand description

A type which can be the receiver of a Flag.

Required Methods§

Source

fn default() -> Self
where Self: Sized,

Creates a default instance of the flag value;

Source

fn set_flag(&mut self)

Sets the flag. This function is called when the flag is provided.

Implementations on Foreign Types§

Source§

impl Flag for Option<bool>

Source§

fn default() -> Self

Source§

fn set_flag(&mut self)

Source§

impl Flag for bool

Source§

fn default() -> Self

Source§

fn set_flag(&mut self)

Source§

impl Flag for i8

Source§

fn default() -> Self

Source§

fn set_flag(&mut self)

Source§

impl Flag for i16

Source§

fn default() -> Self

Source§

fn set_flag(&mut self)

Source§

impl Flag for i32

Source§

fn default() -> Self

Source§

fn set_flag(&mut self)

Source§

impl Flag for i64

Source§

fn default() -> Self

Source§

fn set_flag(&mut self)

Source§

impl Flag for i128

Source§

fn default() -> Self

Source§

fn set_flag(&mut self)

Source§

impl Flag for u8

Source§

fn default() -> Self

Source§

fn set_flag(&mut self)

Source§

impl Flag for u16

Source§

fn default() -> Self

Source§

fn set_flag(&mut self)

Source§

impl Flag for u32

Source§

fn default() -> Self

Source§

fn set_flag(&mut self)

Source§

impl Flag for u64

Source§

fn default() -> Self

Source§

fn set_flag(&mut self)

Source§

impl Flag for u128

Source§

fn default() -> Self

Source§

fn set_flag(&mut self)

Implementors§