[][src]Struct qt_core::q_command_line_option::Flag

#[repr(transparent)]pub struct Flag(_);

The Flags type is a typedef for QFlags<Flag>. It stores an OR combination of Flag values.

C++ enum: QCommandLineOption::Flag.

C++ documentation:

The Flags type is a typedef for QFlags<Flag>. It stores an OR combination of Flag values.

See also QCommandLineOption::setFlags() and QCommandLineOption::flags().

Methods

impl Flag[src]

pub fn to_int(&self) -> c_int[src]

impl Flag[src]

pub const HiddenFromHelp: Flag[src]

Hide this option in the user-visible help output. All options are visible by default. Setting this flag for a particular option makes it internal, i.e. not listed in the help output. (C++ enum variant: HiddenFromHelp = 1)

pub const ShortOptionStyle: Flag[src]

The option will always be understood as a short option, regardless of what was set by QCommandLineParser::setSingleDashWordOptionMode. This allows flags such as -DDEFINE=VALUE or -I/include/path to be interpreted as short flags even when the parser is in QCommandLineParser::ParseAsLongOptions mode. (C++ enum variant: ShortOptionStyle = 2)

Trait Implementations

impl<T: Into<QFlags<Flag>>> BitOr<T> for Flag[src]

type Output = QFlags<Flag>

The resulting type after applying the | operator.

impl Clone for Flag[src]

impl Copy for Flag[src]

impl Debug for Flag[src]

impl Eq for Flag[src]

impl From<Flag> for c_int[src]

impl From<Flag> for QFlags<Flag>[src]

impl From<i32> for Flag[src]

impl PartialEq<Flag> for Flag[src]

impl StructuralEq for Flag[src]

impl StructuralPartialEq for Flag[src]

Auto Trait Implementations

impl RefUnwindSafe for Flag

impl Send for Flag

impl Sync for Flag

impl Unpin for Flag

impl UnwindSafe for Flag

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.