pub struct MatchOption(/* private fields */);Expand description
Implementations§
Source§impl MatchOption
impl MatchOption
Sourcepub const NoMatchOption: MatchOption
pub const NoMatchOption: MatchOption
No match options are set. (C++ enum variant: NoMatchOption = 0)
Sourcepub const AnchoredMatchOption: MatchOption
pub const AnchoredMatchOption: MatchOption
The match is constrained to start exactly at the offset passed to match() in order to be successful, even if the pattern string does not contain any metacharacter that anchors the match at that point. (C++ enum variant: AnchoredMatchOption = 1)
Sourcepub const DontCheckSubjectStringMatchOption: MatchOption
pub const DontCheckSubjectStringMatchOption: MatchOption
The subject string is not checked for UTF-16 validity before attempting a match. Use this option with extreme caution, as attempting to match an invalid string may crash the program and/or constitute a security issue. This enum value has been introduced in Qt 5.4. (C++ enum variant: DontCheckSubjectStringMatchOption = 2)
Trait Implementations§
Source§impl<T: Into<QFlags<MatchOption>>> BitOr<T> for MatchOption
impl<T: Into<QFlags<MatchOption>>> BitOr<T> for MatchOption
Source§impl Clone for MatchOption
impl Clone for MatchOption
Source§fn clone(&self) -> MatchOption
fn clone(&self) -> MatchOption
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MatchOption
impl Debug for MatchOption
Source§impl From<MatchOption> for QFlags<MatchOption>
impl From<MatchOption> for QFlags<MatchOption>
Source§fn from(value: MatchOption) -> Self
fn from(value: MatchOption) -> Self
Converts to this type from the input type.
Source§impl From<MatchOption> for c_int
impl From<MatchOption> for c_int
Source§fn from(value: MatchOption) -> Self
fn from(value: MatchOption) -> Self
Converts to this type from the input type.
Source§impl From<i32> for MatchOption
impl From<i32> for MatchOption
Source§impl PartialEq for MatchOption
impl PartialEq for MatchOption
impl Copy for MatchOption
impl Eq for MatchOption
impl StructuralPartialEq for MatchOption
Auto Trait Implementations§
impl Freeze for MatchOption
impl RefUnwindSafe for MatchOption
impl Send for MatchOption
impl Sync for MatchOption
impl Unpin for MatchOption
impl UnwindSafe for MatchOption
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