Struct qt_core::q_string::SectionFlag
source · pub struct SectionFlag(/* private fields */);
Expand description
This enum specifies flags that can be used to affect various aspects of the section() function's behavior with respect to separators and empty fields.
C++ enum: QString::SectionFlag
.
Implementations§
source§impl SectionFlag
impl SectionFlag
sourcepub const SectionDefault: SectionFlag = _
pub const SectionDefault: SectionFlag = _
Empty fields are counted, leading and trailing separators are not included, and the separator is compared case sensitively. (C++ enum variant: SectionDefault = 0
)
sourcepub const SectionSkipEmpty: SectionFlag = _
pub const SectionSkipEmpty: SectionFlag = _
Treat empty fields as if they don’t exist, i.e. they are not considered as far as start and end are concerned. (C++ enum variant: SectionSkipEmpty = 1
)
sourcepub const SectionIncludeLeadingSep: SectionFlag = _
pub const SectionIncludeLeadingSep: SectionFlag = _
Include the leading separator (if any) in the result string. (C++ enum variant: SectionIncludeLeadingSep = 2
)
sourcepub const SectionIncludeTrailingSep: SectionFlag = _
pub const SectionIncludeTrailingSep: SectionFlag = _
Include the trailing separator (if any) in the result string. (C++ enum variant: SectionIncludeTrailingSep = 4
)
sourcepub const SectionCaseInsensitiveSeps: SectionFlag = _
pub const SectionCaseInsensitiveSeps: SectionFlag = _
Compare the separator case-insensitively. (C++ enum variant: SectionCaseInsensitiveSeps = 8
)
Trait Implementations§
source§impl<T: Into<QFlags<SectionFlag>>> BitOr<T> for SectionFlag
impl<T: Into<QFlags<SectionFlag>>> BitOr<T> for SectionFlag
§type Output = QFlags<SectionFlag>
type Output = QFlags<SectionFlag>
|
operator.source§impl Clone for SectionFlag
impl Clone for SectionFlag
source§fn clone(&self) -> SectionFlag
fn clone(&self) -> SectionFlag
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SectionFlag
impl Debug for SectionFlag
source§impl From<SectionFlag> for QFlags<SectionFlag>
impl From<SectionFlag> for QFlags<SectionFlag>
source§fn from(value: SectionFlag) -> Self
fn from(value: SectionFlag) -> Self
source§impl From<SectionFlag> for c_int
impl From<SectionFlag> for c_int
source§fn from(value: SectionFlag) -> Self
fn from(value: SectionFlag) -> Self
source§impl From<i32> for SectionFlag
impl From<i32> for SectionFlag
source§impl PartialEq for SectionFlag
impl PartialEq for SectionFlag
source§fn eq(&self, other: &SectionFlag) -> bool
fn eq(&self, other: &SectionFlag) -> bool
self
and other
values to be equal, and is used
by ==
.