Struct qt_core::q_regular_expression::MatchOption
source · 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
§type Output = QFlags<MatchOption>
type Output = QFlags<MatchOption>
The resulting type after applying the
|
operator.source§impl Clone for MatchOption
impl Clone for MatchOption
source§fn clone(&self) -> MatchOption
fn clone(&self) -> MatchOption
Returns a copy 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
source§fn eq(&self, other: &MatchOption) -> bool
fn eq(&self, other: &MatchOption) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for MatchOption
impl Eq for MatchOption
impl StructuralEq for MatchOption
impl StructuralPartialEq for MatchOption
Auto Trait Implementations§
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