Struct qt_core::q_string::SplitBehavior
source · pub struct SplitBehavior(/* private fields */);
Expand description
This enum specifies how the split() function should behave with respect to empty strings.
C++ enum: QString::SplitBehavior
.
Implementations§
source§impl SplitBehavior
impl SplitBehavior
sourcepub const KeepEmptyParts: SplitBehavior = _
pub const KeepEmptyParts: SplitBehavior = _
If a field is empty, keep it in the result. (C++ enum variant: KeepEmptyParts = 0
)
sourcepub const SkipEmptyParts: SplitBehavior = _
pub const SkipEmptyParts: SplitBehavior = _
If a field is empty, don’t include it in the result. (C++ enum variant: SkipEmptyParts = 1
)
Trait Implementations§
source§impl Clone for SplitBehavior
impl Clone for SplitBehavior
source§fn clone(&self) -> SplitBehavior
fn clone(&self) -> SplitBehavior
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 SplitBehavior
impl Debug for SplitBehavior
source§impl From<SplitBehavior> for c_int
impl From<SplitBehavior> for c_int
source§fn from(value: SplitBehavior) -> Self
fn from(value: SplitBehavior) -> Self
Converts to this type from the input type.
source§impl From<i32> for SplitBehavior
impl From<i32> for SplitBehavior
source§impl PartialEq for SplitBehavior
impl PartialEq for SplitBehavior
source§fn eq(&self, other: &SplitBehavior) -> bool
fn eq(&self, other: &SplitBehavior) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SplitBehavior
impl Eq for SplitBehavior
impl StructuralEq for SplitBehavior
impl StructuralPartialEq for SplitBehavior
Auto Trait Implementations§
impl RefUnwindSafe for SplitBehavior
impl Send for SplitBehavior
impl Sync for SplitBehavior
impl Unpin for SplitBehavior
impl UnwindSafe for SplitBehavior
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