Struct qt_core::WhiteSpaceMode
source · pub struct WhiteSpaceMode(/* private fields */);
Expand description
This enum describes the types of whitespace mode that are used by the QTextDocument class to meet the requirements of different kinds of textual information.
C++ enum: Qt::WhiteSpaceMode
.
This enum describes the types of whitespace mode that are used by the QTextDocument class to meet the requirements of different kinds of textual information.
Implementations§
source§impl WhiteSpaceMode
impl WhiteSpaceMode
sourcepub const WhiteSpaceNormal: WhiteSpaceMode = _
pub const WhiteSpaceNormal: WhiteSpaceMode = _
The whitespace mode used to display normal word wrapped text in paragraphs. (C++ enum variant: WhiteSpaceNormal = 0
)
sourcepub const WhiteSpacePre: WhiteSpaceMode = _
pub const WhiteSpacePre: WhiteSpaceMode = _
A preformatted text mode in which whitespace is reproduced exactly. (C++ enum variant: WhiteSpacePre = 1
)
sourcepub const WhiteSpaceNoWrap: WhiteSpaceMode = _
pub const WhiteSpaceNoWrap: WhiteSpaceMode = _
(C++ enum variant: WhiteSpaceNoWrap = 2
)
sourcepub const WhiteSpaceModeUndefined: WhiteSpaceMode = _
pub const WhiteSpaceModeUndefined: WhiteSpaceMode = _
C++ enum variant: WhiteSpaceModeUndefined = -1
Trait Implementations§
source§impl Clone for WhiteSpaceMode
impl Clone for WhiteSpaceMode
source§fn clone(&self) -> WhiteSpaceMode
fn clone(&self) -> WhiteSpaceMode
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 WhiteSpaceMode
impl Debug for WhiteSpaceMode
source§impl From<WhiteSpaceMode> for c_int
impl From<WhiteSpaceMode> for c_int
source§fn from(value: WhiteSpaceMode) -> Self
fn from(value: WhiteSpaceMode) -> Self
Converts to this type from the input type.
source§impl From<i32> for WhiteSpaceMode
impl From<i32> for WhiteSpaceMode
source§impl PartialEq for WhiteSpaceMode
impl PartialEq for WhiteSpaceMode
source§fn eq(&self, other: &WhiteSpaceMode) -> bool
fn eq(&self, other: &WhiteSpaceMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for WhiteSpaceMode
impl Eq for WhiteSpaceMode
impl StructuralEq for WhiteSpaceMode
impl StructuralPartialEq for WhiteSpaceMode
Auto Trait Implementations§
impl RefUnwindSafe for WhiteSpaceMode
impl Send for WhiteSpaceMode
impl Sync for WhiteSpaceMode
impl Unpin for WhiteSpaceMode
impl UnwindSafe for WhiteSpaceMode
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