Struct qt_core::SplitBehaviorFlags
source · pub struct SplitBehaviorFlags(/* private fields */);
Expand description
This enum specifies how the split() functions should behave with respect to empty strings.
C++ enum: Qt::SplitBehaviorFlags
.
This enum specifies how the split() functions should behave with respect to empty strings.
This enum was introduced or modified in Qt 5.14.
The SplitBehavior type is a typedef for QFlags<SplitBehaviorFlags>. It stores an OR combination of SplitBehaviorFlags values.
See also QString::split().
Implementations§
source§impl SplitBehaviorFlags
impl SplitBehaviorFlags
sourcepub const KeepEmptyParts: SplitBehaviorFlags = _
pub const KeepEmptyParts: SplitBehaviorFlags = _
If a field is empty, keep it in the result. (C++ enum variant: KeepEmptyParts = 0
)
sourcepub const SkipEmptyParts: SplitBehaviorFlags = _
pub const SkipEmptyParts: SplitBehaviorFlags = _
If a field is empty, don’t include it in the result. (C++ enum variant: SkipEmptyParts = 1
)
Trait Implementations§
source§impl<T: Into<QFlags<SplitBehaviorFlags>>> BitOr<T> for SplitBehaviorFlags
impl<T: Into<QFlags<SplitBehaviorFlags>>> BitOr<T> for SplitBehaviorFlags
§type Output = QFlags<SplitBehaviorFlags>
type Output = QFlags<SplitBehaviorFlags>
The resulting type after applying the
|
operator.source§impl Clone for SplitBehaviorFlags
impl Clone for SplitBehaviorFlags
source§fn clone(&self) -> SplitBehaviorFlags
fn clone(&self) -> SplitBehaviorFlags
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 SplitBehaviorFlags
impl Debug for SplitBehaviorFlags
source§impl From<SplitBehaviorFlags> for QFlags<SplitBehaviorFlags>
impl From<SplitBehaviorFlags> for QFlags<SplitBehaviorFlags>
source§fn from(value: SplitBehaviorFlags) -> Self
fn from(value: SplitBehaviorFlags) -> Self
Converts to this type from the input type.
source§impl From<SplitBehaviorFlags> for c_int
impl From<SplitBehaviorFlags> for c_int
source§fn from(value: SplitBehaviorFlags) -> Self
fn from(value: SplitBehaviorFlags) -> Self
Converts to this type from the input type.
source§impl From<i32> for SplitBehaviorFlags
impl From<i32> for SplitBehaviorFlags
source§impl PartialEq for SplitBehaviorFlags
impl PartialEq for SplitBehaviorFlags
source§fn eq(&self, other: &SplitBehaviorFlags) -> bool
fn eq(&self, other: &SplitBehaviorFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SplitBehaviorFlags
impl Eq for SplitBehaviorFlags
impl StructuralEq for SplitBehaviorFlags
impl StructuralPartialEq for SplitBehaviorFlags
Auto Trait Implementations§
impl RefUnwindSafe for SplitBehaviorFlags
impl Send for SplitBehaviorFlags
impl Sync for SplitBehaviorFlags
impl Unpin for SplitBehaviorFlags
impl UnwindSafe for SplitBehaviorFlags
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