[][src]Struct qt_core::q_cbor_value::EncodingOption

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

This enum is used in the options argument to toCbor(), modifying the behavior of the encoder.

C++ enum: QCborValue::EncodingOption.

C++ documentation:

This enum is used in the options argument to toCbor(), modifying the behavior of the encoder.

The use of UseFloat16 is required to encode the stream in Canonical Format, but is not otherwise necessary.

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

See also toCbor().

Methods

impl EncodingOption[src]

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

impl EncodingOption[src]

pub const SortKeysInMaps: EncodingOption[src]

C++ enum variant: SortKeysInMaps = 1

pub const UseFloat: EncodingOption[src]

Tells the encoder to use IEEE 754 single-precision floating point (that is, float) whenever possible. (C++ enum variant: UseFloat = 2)

pub const UseFloat16: EncodingOption[src]

Tells the encoder to use IEEE 754 half-precision floating point (that is, qfloat16), whenever possible. Implies UseFloat. (C++ enum variant: UseFloat16 = 6)

pub const UseIntegers: EncodingOption[src]

Tells the encoder to use integers whenever a value of type Double contains an integer. (C++ enum variant: UseIntegers = 8)

pub const NoTransformation: EncodingOption[src]

(Default) Performs no transformations. (C++ enum variant: NoTransformation = 0)

Trait Implementations

impl From<i32> for EncodingOption[src]

impl From<EncodingOption> for c_int[src]

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

impl Clone for EncodingOption[src]

impl Copy for EncodingOption[src]

impl Eq for EncodingOption[src]

impl PartialEq<EncodingOption> for EncodingOption[src]

impl Debug for EncodingOption[src]

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

type Output = QFlags<EncodingOption>

The resulting type after applying the | operator.

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<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.

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

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

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

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

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