[][src]Struct qt_core::MatchFlag

#[repr(transparent)]
pub struct MatchFlag(_);

This enum describes the type of matches that can be used when searching for items in a model.

C++ enum: Qt::MatchFlag.

C++ documentation:

This enum describes the type of matches that can be used when searching for items in a model.

The MatchFlags type is a typedef for QFlags<MatchFlag>. It stores an OR combination of MatchFlag values.

See also QString::compare() and QRegExp.

Methods

impl MatchFlag[src]

pub fn to_int(&self) -> c_int[src]

impl MatchFlag[src]

pub const MatchExactly: MatchFlag[src]

Performs QVariant-based matching. (C++ enum variant: MatchExactly = 0)

pub const MatchContains: MatchFlag[src]

The search term is contained in the item. (C++ enum variant: MatchContains = 1)

pub const MatchStartsWith: MatchFlag[src]

The search term matches the start of the item. (C++ enum variant: MatchStartsWith = 2)

pub const MatchEndsWith: MatchFlag[src]

The search term matches the end of the item. (C++ enum variant: MatchEndsWith = 3)

pub const MatchRegExp: MatchFlag[src]

Performs string-based matching using a regular expression as the search term. (C++ enum variant: MatchRegExp = 4)

pub const MatchWildcard: MatchFlag[src]

Performs string-based matching using a string with wildcards as the search term. (C++ enum variant: MatchWildcard = 5)

pub const MatchFixedString: MatchFlag[src]

Performs string-based matching. String-based comparisons are case-insensitive unless the MatchCaseSensitive flag is also specified. (C++ enum variant: MatchFixedString = 8)

pub const MatchCaseSensitive: MatchFlag[src]

The search is case sensitive. (C++ enum variant: MatchCaseSensitive = 16)

pub const MatchWrap: MatchFlag[src]

Perform a search that wraps around, so that when the search reaches the last item in the model, it begins again at the first item and continues until all items have been examined. (C++ enum variant: MatchWrap = 32)

pub const MatchRecursive: MatchFlag[src]

Searches the entire hierarchy. (C++ enum variant: MatchRecursive = 64)

Trait Implementations

impl<T: Into<QFlags<MatchFlag>>> BitOr<T> for MatchFlag[src]

type Output = QFlags<MatchFlag>

The resulting type after applying the | operator.

impl Clone for MatchFlag[src]

impl Copy for MatchFlag[src]

impl Debug for MatchFlag[src]

impl Eq for MatchFlag[src]

impl From<MatchFlag> for c_int[src]

impl From<MatchFlag> for QFlags<MatchFlag>[src]

impl From<i32> for MatchFlag[src]

impl PartialEq<MatchFlag> for MatchFlag[src]

impl StructuralEq for MatchFlag[src]

impl StructuralPartialEq for MatchFlag[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.