[−][src]Struct qt_core::q_cbor_value::EncodingOption
This enum is used in the options argument to toCbor(), modifying the behavior of the encoder.
C++ enum: QCborValue::EncodingOption
.
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]
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]
fn from(value: EncodingOption) -> Self
[src]
impl From<EncodingOption> for QFlags<EncodingOption>
[src]
fn from(value: EncodingOption) -> Self
[src]
impl Clone for EncodingOption
[src]
fn clone(&self) -> EncodingOption
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for EncodingOption
[src]
impl Eq for EncodingOption
[src]
impl PartialEq<EncodingOption> for EncodingOption
[src]
fn eq(&self, other: &EncodingOption) -> bool
[src]
fn ne(&self, other: &EncodingOption) -> bool
[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.
fn bitor(self, rhs: T) -> QFlags<EncodingOption>
[src]
Auto Trait Implementations
impl Send for EncodingOption
impl Sync for EncodingOption
impl Unpin for EncodingOption
impl UnwindSafe for EncodingOption
impl RefUnwindSafe for EncodingOption
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,