#[repr(C)]pub struct QStringList { /* private fields */ }
Expand description
The QStringList class provides a list of strings.
Implementations§
Source§impl QStringList
impl QStringList
Sourcepub fn contains(&self, str: &QString, cs: CaseSensitivity) -> bool
pub fn contains(&self, str: &QString, cs: CaseSensitivity) -> bool
Returns true if the list contains the string str; otherwise returns false.
Source§impl QStringList
impl QStringList
Sourcepub fn filter(&self, str: &QString, cs: CaseSensitivity) -> QStringList
pub fn filter(&self, str: &QString, cs: CaseSensitivity) -> QStringList
Returns a list of all the strings containing the substring str.
Source§impl QStringList
impl QStringList
Source§impl QStringList
impl QStringList
Sourcepub fn sort(&mut self, cs: CaseSensitivity)
pub fn sort(&mut self, cs: CaseSensitivity)
Sorts the list of strings in ascending order.
Source§impl QStringList
impl QStringList
Sourcepub fn replace_in_strings(
&mut self,
before: &QString,
after: &QString,
cs: CaseSensitivity,
) -> &mut QStringList
pub fn replace_in_strings( &mut self, before: &QString, after: &QString, cs: CaseSensitivity, ) -> &mut QStringList
Returns a string list where every string has had the before text replaced with the after text wherever the before text is found. The before text is matched case-sensitively or not depending on the cs flag.
Source§impl QStringList
impl QStringList
Sourcepub fn remove_duplicates(&mut self) -> isize
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
impl Clone for QStringList
Source§impl Debug for QStringList
impl Debug for QStringList
Source§impl Display for QStringList
impl Display for QStringList
Source§impl ExternType for QStringList
impl ExternType for QStringList
Source§impl From<&QString> for QStringList
impl From<&QString> for QStringList
Source§impl From<&QStringList> for QList<QString>
impl From<&QStringList> for QList<QString>
Source§fn from(list: &QStringList) -> Self
fn from(list: &QStringList) -> Self
Converts a QStringList into a QList<QString>
Source§impl PartialEq for QStringList
impl PartialEq for QStringList
Source§impl QVariantValue for QStringList
impl QVariantValue for QStringList
impl Eq for QStringList
Auto Trait Implementations§
impl Freeze for QStringList
impl RefUnwindSafe for QStringList
impl Send for QStringList
impl Sync for QStringList
impl Unpin for QStringList
impl UnwindSafe for QStringList
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more