Skip to main content

QCommandLineOption

Struct QCommandLineOption 

Source
pub struct QCommandLineOption { /* private fields */ }
Expand description

C++ class: QCommandLineOption.

Implementations§

Source§

impl QCommandLineOption

Source

pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QCommandLineOption>>, ) -> Ref<QCommandLineOption>

Calls C++ function: QCommandLineOption& QCommandLineOption::operator=(const QCommandLineOption& other).

Source

pub unsafe fn default_values(&self) -> CppBox<QStringList>

Calls C++ function: QStringList QCommandLineOption::defaultValues() const.

Source

pub unsafe fn description(&self) -> CppBox<QString>

Calls C++ function: QString QCommandLineOption::description() const.

Source

pub unsafe fn flags(&self) -> QFlags<Flag>

Calls C++ function: QFlags<QCommandLineOption::Flag> QCommandLineOption::flags() const.

Source

pub unsafe fn is_hidden(&self) -> bool

Calls C++ function: bool QCommandLineOption::isHidden() const.

Source

pub unsafe fn names(&self) -> CppBox<QStringList>

Calls C++ function: QStringList QCommandLineOption::names() const.

Source

pub unsafe fn from_q_string( name: impl CastInto<Ref<QString>>, ) -> CppBox<QCommandLineOption>

Calls C++ function: [constructor] void QCommandLineOption::QCommandLineOption(const QString& name).

Source

pub unsafe fn from_q_string_list( names: impl CastInto<Ref<QStringList>>, ) -> CppBox<QCommandLineOption>

Calls C++ function: [constructor] void QCommandLineOption::QCommandLineOption(const QStringList& names).

Source

pub unsafe fn from_4_q_string( name: impl CastInto<Ref<QString>>, description: impl CastInto<Ref<QString>>, value_name: impl CastInto<Ref<QString>>, default_value: impl CastInto<Ref<QString>>, ) -> CppBox<QCommandLineOption>

Calls C++ function: [constructor] void QCommandLineOption::QCommandLineOption(const QString& name, const QString& description, const QString& valueName = …, const QString& defaultValue = …).

Source

pub unsafe fn from_q_string_list3_q_string( names: impl CastInto<Ref<QStringList>>, description: impl CastInto<Ref<QString>>, value_name: impl CastInto<Ref<QString>>, default_value: impl CastInto<Ref<QString>>, ) -> CppBox<QCommandLineOption>

Calls C++ function: [constructor] void QCommandLineOption::QCommandLineOption(const QStringList& names, const QString& description, const QString& valueName = …, const QString& defaultValue = …).

Source

pub unsafe fn from_3_q_string( name: impl CastInto<Ref<QString>>, description: impl CastInto<Ref<QString>>, value_name: impl CastInto<Ref<QString>>, ) -> CppBox<QCommandLineOption>

Calls C++ function: [constructor] void QCommandLineOption::QCommandLineOption(const QString& name, const QString& description, const QString& valueName = …).

Source

pub unsafe fn from_2_q_string( name: impl CastInto<Ref<QString>>, description: impl CastInto<Ref<QString>>, ) -> CppBox<QCommandLineOption>

Calls C++ function: [constructor] void QCommandLineOption::QCommandLineOption(const QString& name, const QString& description).

Source

pub unsafe fn from_q_string_list2_q_string( names: impl CastInto<Ref<QStringList>>, description: impl CastInto<Ref<QString>>, value_name: impl CastInto<Ref<QString>>, ) -> CppBox<QCommandLineOption>

Calls C++ function: [constructor] void QCommandLineOption::QCommandLineOption(const QStringList& names, const QString& description, const QString& valueName = …).

Source

pub unsafe fn from_q_string_list_q_string( names: impl CastInto<Ref<QStringList>>, description: impl CastInto<Ref<QString>>, ) -> CppBox<QCommandLineOption>

Calls C++ function: [constructor] void QCommandLineOption::QCommandLineOption(const QStringList& names, const QString& description).

Source

pub unsafe fn new_copy( other: impl CastInto<Ref<QCommandLineOption>>, ) -> CppBox<QCommandLineOption>

Calls C++ function: [constructor] void QCommandLineOption::QCommandLineOption(const QCommandLineOption& other).

Source

pub unsafe fn set_default_value( &self, default_value: impl CastInto<Ref<QString>>, )

Calls C++ function: void QCommandLineOption::setDefaultValue(const QString& defaultValue).

Source

pub unsafe fn set_default_values( &self, default_values: impl CastInto<Ref<QStringList>>, )

Calls C++ function: void QCommandLineOption::setDefaultValues(const QStringList& defaultValues).

Source

pub unsafe fn set_description(&self, description: impl CastInto<Ref<QString>>)

Calls C++ function: void QCommandLineOption::setDescription(const QString& description).

Source

pub unsafe fn set_flags(&self, aflags: QFlags<Flag>)

Calls C++ function: void QCommandLineOption::setFlags(QFlags<QCommandLineOption::Flag> aflags).

Source

pub unsafe fn set_hidden(&self, hidden: bool)

Calls C++ function: void QCommandLineOption::setHidden(bool hidden).

Source

pub unsafe fn set_value_name(&self, name: impl CastInto<Ref<QString>>)

Calls C++ function: void QCommandLineOption::setValueName(const QString& name).

Source

pub unsafe fn swap(&self, other: impl CastInto<Ref<QCommandLineOption>>)

Calls C++ function: void QCommandLineOption::swap(QCommandLineOption& other).

Source

pub unsafe fn value_name(&self) -> CppBox<QString>

Calls C++ function: QString QCommandLineOption::valueName() const.

Trait Implementations§

Source§

impl CppDeletable for QCommandLineOption

Source§

unsafe fn delete(&self)

Calls C++ function: [destructor] void QCommandLineOption::~QCommandLineOption().

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

Source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> StaticUpcast<T> for T

Source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.