[][src]Struct qt_core::q_text_stream::NumberFlag

#[repr(transparent)]pub struct NumberFlag(_);

This enum specifies various flags that can be set to affect the output of integers, floats, and doubles.

C++ enum: QTextStream::NumberFlag.

C++ documentation:

This enum specifies various flags that can be set to affect the output of integers, floats, and doubles.

The NumberFlags type is a typedef for QFlags<NumberFlag>. It stores an OR combination of NumberFlag values.

See also setNumberFlags().

Methods

impl NumberFlag[src]

pub fn to_int(&self) -> c_int[src]

impl NumberFlag[src]

pub const ShowBase: NumberFlag[src]

Show the base as a prefix if the base is 16 ("0x"), 8 ("0"), or 2 ("0b"). (C++ enum variant: ShowBase = 1)

pub const ForcePoint: NumberFlag[src]

Always put the decimal separator in numbers, even if there are no decimals. (C++ enum variant: ForcePoint = 2)

pub const ForceSign: NumberFlag[src]

Always put the sign in numbers, even for positive numbers. (C++ enum variant: ForceSign = 4)

pub const UppercaseBase: NumberFlag[src]

Use uppercase versions of base prefixes ("0X", "0B"). (C++ enum variant: UppercaseBase = 8)

pub const UppercaseDigits: NumberFlag[src]

Use uppercase letters for expressing digits 10 to 35 instead of lowercase. (C++ enum variant: UppercaseDigits = 16)

Trait Implementations

impl<T: Into<QFlags<NumberFlag>>> BitOr<T> for NumberFlag[src]

type Output = QFlags<NumberFlag>

The resulting type after applying the | operator.

impl Clone for NumberFlag[src]

impl Copy for NumberFlag[src]

impl Debug for NumberFlag[src]

impl Eq for NumberFlag[src]

impl From<NumberFlag> for c_int[src]

impl From<NumberFlag> for QFlags<NumberFlag>[src]

impl From<i32> for NumberFlag[src]

impl PartialEq<NumberFlag> for NumberFlag[src]

impl StructuralEq for NumberFlag[src]

impl StructuralPartialEq for NumberFlag[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.