[−][src]Struct qt_core::QCollatorSortKey
The QCollatorSortKey class can be used to speed up string collation.
C++ class: QCollatorSortKey
.
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
.
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]
&mut self,
other: impl CastInto<Ref<QCollatorSortKey>>
) -> MutRef<QCollatorSortKey>
Assigns other to this collator key.
Calls C++ function: QCollatorSortKey& QCollatorSortKey::operator=(const QCollatorSortKey& other)
.
Assigns other to this collator key.
pub unsafe fn new_copy(
other: impl CastInto<Ref<QCollatorSortKey>>
) -> CppBox<QCollatorSortKey>
[src]
other: impl CastInto<Ref<QCollatorSortKey>>
) -> CppBox<QCollatorSortKey>
Constructs a copy of the other collator key.
Calls C++ function: [constructor] void QCollatorSortKey::QCollatorSortKey(const QCollatorSortKey& other)
.
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)
.
Swaps this collator key with other.
Trait Implementations
impl CppDeletable for QCollatorSortKey
[src]
unsafe fn delete(&mut self)
[src]
Destroys the collator key.
Calls C++ function: [destructor] void QCollatorSortKey::~QCollatorSortKey()
.
Destroys the collator key.
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)
.
Auto Trait Implementations
impl RefUnwindSafe for QCollatorSortKey
impl Send for QCollatorSortKey
impl Sync for QCollatorSortKey
impl Unpin for QCollatorSortKey
impl UnwindSafe for QCollatorSortKey
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,