Struct cbor_data::ArrayWriter[][src]

pub struct ArrayWriter<'a> { /* fields omitted */ }

Builder for an array value, used by write_array_ret().

see trait Encoder for usage examples

Implementations

impl<'a> ArrayWriter<'a>[src]

pub fn set_max_definite_size(&mut self, size: Option<u64>)[src]

Configure the limit above which indefinite size encoding will be used.

The default is 255, which is the largest size up to which definite size is at least as compact as indefinite size. Set to 23 to avoid moving bytes around when finishing the array. Set to None to always use indefinite size encoding.

Trait Implementations

impl<'a> Writer for ArrayWriter<'a>[src]

type Output = Self

Auto Trait Implementations

impl<'a> RefUnwindSafe for ArrayWriter<'a>

impl<'a> Send for ArrayWriter<'a>

impl<'a> Sync for ArrayWriter<'a>

impl<'a> Unpin for ArrayWriter<'a>

impl<'a> !UnwindSafe for ArrayWriter<'a>

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> From<T> for T[src]

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

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.