Enum mkit::cbor::SimpleValue [−][src]
Major type 7, simple-value. Refer to Cbor spec for details.
Variants
0..=19 and 28..=30 and 32..=255 are unassigned.
Boolean type, value true.
Boolean type, value false.
Null unitary type, can be used in place of optional types.
Undefined unitary type.
Reserved24(u8)
Reserved.
F16(u16)
16-bit floating point.
F32(f32)
32-bit floating point.
F64(f64)
64-bit floating point.
Break stop for indefinite encoding.
Implementations
impl SimpleValue
[src]
pub fn to_type_order(&self) -> usize
[src]
Trait Implementations
impl Arbitrary for SimpleValue
[src]
fn arbitrary(u: &mut Unstructured<'_>) -> Result<Self>
[src]
pub fn arbitrary_take_rest(u: Unstructured<'_>) -> Result<Self, Error>
[src]
pub fn size_hint(depth: usize) -> (usize, Option<usize>)
[src]
pub fn shrink(&self) -> Box<dyn Iterator<Item = Self> + 'static, Global>
[src]
impl Clone for SimpleValue
[src]
fn clone(&self) -> SimpleValue
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for SimpleValue
[src]
impl Debug for SimpleValue
[src]
impl Eq for SimpleValue
[src]
impl IntoCbor for SimpleValue
[src]
impl PartialEq<SimpleValue> for SimpleValue
[src]
Auto Trait Implementations
impl RefUnwindSafe for SimpleValue
impl Send for SimpleValue
impl Sync for SimpleValue
impl Unpin for SimpleValue
impl UnwindSafe for SimpleValue
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,