Skip to main content

QMetaMethod

Struct QMetaMethod 

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

C++ class: QMetaMethod.

Implementations§

Source§

impl QMetaMethod

Source

pub unsafe fn access(&self) -> Access

Calls C++ function: QMetaMethod::Access QMetaMethod::access() const.

Source

pub unsafe fn attributes(&self) -> c_int

Calls C++ function: int QMetaMethod::attributes() const.

Source

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

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

Source

pub unsafe fn enclosing_meta_object(&self) -> Ptr<QMetaObject>

Calls C++ function: const QMetaObject* QMetaMethod::enclosingMetaObject() const.

Source

pub unsafe fn get_parameter_types(&self, types: *mut c_int)

Calls C++ function: void QMetaMethod::getParameterTypes(int* types) const.

Source

pub unsafe fn is_valid(&self) -> bool

Calls C++ function: bool QMetaMethod::isValid() const.

Source

pub unsafe fn method_index(&self) -> c_int

Calls C++ function: int QMetaMethod::methodIndex() const.

Source

pub unsafe fn method_signature(&self) -> CppBox<QByteArray>

Calls C++ function: QByteArray QMetaMethod::methodSignature() const.

Source

pub unsafe fn method_type(&self) -> MethodType

Calls C++ function: QMetaMethod::MethodType QMetaMethod::methodType() const.

Source

pub unsafe fn name(&self) -> CppBox<QByteArray>

Calls C++ function: QByteArray QMetaMethod::name() const.

Source

pub unsafe fn new() -> CppBox<QMetaMethod>

Calls C++ function: [constructor] void QMetaMethod::QMetaMethod().

Source

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

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

Source

pub unsafe fn parameter_count(&self) -> c_int

Calls C++ function: int QMetaMethod::parameterCount() const.

Source

pub unsafe fn parameter_names(&self) -> CppBox<QListOfQByteArray>

Calls C++ function: QList<QByteArray> QMetaMethod::parameterNames() const.

Source

pub unsafe fn parameter_type(&self, index: c_int) -> c_int

Calls C++ function: int QMetaMethod::parameterType(int index) const.

Source

pub unsafe fn parameter_types(&self) -> CppBox<QListOfQByteArray>

Calls C++ function: QList<QByteArray> QMetaMethod::parameterTypes() const.

Source

pub unsafe fn return_type(&self) -> c_int

Calls C++ function: int QMetaMethod::returnType() const.

Source

pub unsafe fn revision(&self) -> c_int

Calls C++ function: int QMetaMethod::revision() const.

Source

pub unsafe fn tag(&self) -> *const c_char

Calls C++ function: const char* QMetaMethod::tag() const.

Source

pub unsafe fn type_name(&self) -> *const c_char

Calls C++ function: const char* QMetaMethod::typeName() const.

Trait Implementations§

Source§

impl CppDeletable for QMetaMethod

Source§

unsafe fn delete(&self)

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

Source§

impl PartialEq<Ref<QMetaMethod>> for QMetaMethod

Source§

fn eq(&self, m2: &Ref<QMetaMethod>) -> bool

Calls C++ function: bool operator==(const QMetaMethod& m1, const QMetaMethod& m2).

1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

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.