Skip to main content

QCollator

Struct QCollator 

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

C++ class: QCollator.

Implementations§

Source§

impl QCollator

Source

pub unsafe fn call_2_q_string( &self, s1: impl CastInto<Ref<QString>>, s2: impl CastInto<Ref<QString>>, ) -> bool

Calls C++ function: bool QCollator::operator()(const QString& s1, const QString& s2) const.

Source

pub unsafe fn call_2_q_string_view( &self, s1: impl CastInto<Ref<QStringView>>, s2: impl CastInto<Ref<QStringView>>, ) -> bool

Calls C++ function: bool QCollator::operator()(QStringView s1, QStringView s2) const.

Source

pub unsafe fn case_sensitivity(&self) -> CaseSensitivity

Calls C++ function: Qt::CaseSensitivity QCollator::caseSensitivity() const.

Source

pub unsafe fn compare_2_q_string( &self, s1: impl CastInto<Ref<QString>>, s2: impl CastInto<Ref<QString>>, ) -> c_int

Calls C++ function: int QCollator::compare(const QString& s1, const QString& s2) const.

Source

pub unsafe fn compare_2_q_string_ref( &self, s1: impl CastInto<Ref<QStringRef>>, s2: impl CastInto<Ref<QStringRef>>, ) -> c_int

Calls C++ function: int QCollator::compare(const QStringRef& s1, const QStringRef& s2) const.

Source

pub unsafe fn compare_q_char_int_q_char_int( &self, s1: impl CastInto<Ptr<QChar>>, len1: c_int, s2: impl CastInto<Ptr<QChar>>, len2: c_int, ) -> c_int

Calls C++ function: int QCollator::compare(const QChar* s1, int len1, const QChar* s2, int len2) const.

Source

pub unsafe fn compare_2_q_string_view( &self, s1: impl CastInto<Ref<QStringView>>, s2: impl CastInto<Ref<QStringView>>, ) -> c_int

Calls C++ function: int QCollator::compare(QStringView s1, QStringView s2) const.

Source

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

Calls C++ function: QCollator& QCollator::operator=(const QCollator& arg1).

Source

pub unsafe fn ignore_punctuation(&self) -> bool

Calls C++ function: bool QCollator::ignorePunctuation() const.

Source

pub unsafe fn locale(&self) -> CppBox<QLocale>

Calls C++ function: QLocale QCollator::locale() const.

Source

pub unsafe fn new_0a() -> CppBox<QCollator>

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

Source

pub unsafe fn new_1a(locale: impl CastInto<Ref<QLocale>>) -> CppBox<QCollator>

Calls C++ function: [constructor] void QCollator::QCollator(const QLocale& locale).

Source

pub unsafe fn new_copy(arg1: impl CastInto<Ref<QCollator>>) -> CppBox<QCollator>

Calls C++ function: [constructor] void QCollator::QCollator(const QCollator& arg1).

Source

pub unsafe fn numeric_mode(&self) -> bool

Calls C++ function: bool QCollator::numericMode() const.

Source

pub unsafe fn set_case_sensitivity(&self, cs: CaseSensitivity)

Calls C++ function: void QCollator::setCaseSensitivity(Qt::CaseSensitivity cs).

Source

pub unsafe fn set_ignore_punctuation(&self, on: bool)

Calls C++ function: void QCollator::setIgnorePunctuation(bool on).

Source

pub unsafe fn set_locale(&self, locale: impl CastInto<Ref<QLocale>>)

Calls C++ function: void QCollator::setLocale(const QLocale& locale).

Source

pub unsafe fn set_numeric_mode(&self, on: bool)

Calls C++ function: void QCollator::setNumericMode(bool on).

Source

pub unsafe fn sort_key( &self, string: impl CastInto<Ref<QString>>, ) -> CppBox<QCollatorSortKey>

Calls C++ function: QCollatorSortKey QCollator::sortKey(const QString& string) const.

Source

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

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

Trait Implementations§

Source§

impl CppDeletable for QCollator

Source§

unsafe fn delete(&self)

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

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.