Struct cxx_qt_lib::QStringList

source ·
#[repr(C)]
pub struct QStringList { /* private fields */ }
Expand description

The QStringList class provides a list of strings.

Implementations§

source§

impl QStringList

source

pub fn contains(&self, str: &QString, cs: CaseSensitivity) -> bool

Returns true if the list contains the string str; otherwise returns false.

source§

impl QStringList

source

pub fn filter(&self, str: &QString, cs: CaseSensitivity) -> QStringList

Returns a list of all the strings containing the substring str.

source§

impl QStringList

source

pub fn join(&self, separator: &QString) -> QString

Joins all the string list’s strings into a single string with each element separated by the given separator (which can be an empty string).

source§

impl QStringList

source

pub fn sort(&mut self, cs: CaseSensitivity)

Sorts the list of strings in ascending order.

source§

impl QStringList

source

pub fn remove_duplicates(&mut self) -> isize

This function removes duplicate entries from a list. The entries do not have to be sorted. They will retain their original order.

Trait Implementations§

source§

impl Clone for QStringList

source§

fn clone(&self) -> Self

Constructs a copy of other.

1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for QStringList

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for QStringList

source§

fn default() -> Self

Constructs an empty list.

source§

impl Display for QStringList

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Drop for QStringList

source§

fn drop(&mut self)

Destroys the list.

source§

impl ExternType for QStringList

§

type Id = (Q, S, t, r, i, n, g, L, i, s, t)

A type-level representation of the type’s C++ namespace and type name. Read more
§

type Kind = Trivial

source§

impl From<&QList<QString>> for QStringList

source§

fn from(list: &QList<QString>) -> Self

Converts a QList<QString> into QStringList.

source§

impl From<&QString> for QStringList

source§

fn from(string: &QString) -> Self

Constructs a string list that contains the given string

source§

impl From<&QStringList> for QList<QString>

source§

fn from(list: &QStringList) -> Self

Converts a QStringList into a QList<QString>

source§

impl PartialEq for QStringList

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl QVariantValue for QStringList

source§

impl Eq for QStringList

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> 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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

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

§

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>,

§

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.