[][src]Struct qt_core::QCollatorSortKey

#[repr(C)]
pub struct QCollatorSortKey { /* fields omitted */ }

The QCollatorSortKey class can be used to speed up string collation.

C++ class: QCollatorSortKey.

C++ documentation:

The QCollatorSortKey class can be used to speed up string collation.

The QCollatorSortKey class is always created by QCollator::sortKey() and is used for fast strings collation, for example when collating many strings.

Methods

impl QCollatorSortKey[src]

pub unsafe fn compare(&self, key: impl CastInto<Ref<QCollatorSortKey>>) -> c_int[src]

Compares the key to otherKey. Returns a negative value if the key is less than otherKey, 0 if the key is equal to otherKey or a positive value if the key is greater than otherKey.

Calls C++ function: int QCollatorSortKey::compare(const QCollatorSortKey& key) const.

C++ documentation:

Compares the key to otherKey. Returns a negative value if the key is less than otherKey, 0 if the key is equal to otherKey or a positive value if the key is greater than otherKey.

See also operator<().

pub unsafe fn copy_from(
    &mut self,
    other: impl CastInto<Ref<QCollatorSortKey>>
) -> MutRef<QCollatorSortKey>
[src]

Assigns other to this collator key.

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

C++ documentation:

Assigns other to this collator key.

pub unsafe fn new_copy(
    other: impl CastInto<Ref<QCollatorSortKey>>
) -> CppBox<QCollatorSortKey>
[src]

Constructs a copy of the other collator key.

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

C++ documentation:

Constructs a copy of the other collator key.

pub unsafe fn swap(&mut self, other: impl CastInto<MutRef<QCollatorSortKey>>)[src]

Swaps this collator key with other.

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

C++ documentation:

Swaps this collator key with other.

Trait Implementations

impl Lt<Ref<QCollatorSortKey>> for QCollatorSortKey[src]

unsafe fn lt(&self, rhs: &Ref<QCollatorSortKey>) -> bool[src]

Calls C++ function: bool operator<(const QCollatorSortKey& lhs, const QCollatorSortKey& rhs).

impl CppDeletable for QCollatorSortKey[src]

unsafe fn delete(&mut self)[src]

Destroys the collator key.

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

C++ documentation:

Destroys the collator key.

Auto Trait Implementations

Blanket Implementations

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

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

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.

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

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

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

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

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