Struct cbor_data::SingleBuilder [−][src]
Builder for the single value of a dict key.
This builder can be used for exactly one item (which may be a complex one, like an array)
and returns a SingleResult
to prove to its
DictWriter
that it has been used.
Trait Implementations
impl<'a, 'b> Writer for SingleBuilder<'a, 'b>
[src]
type Output = SingleResult
fn bytes<T>(&mut self, f: impl FnOnce(&mut Vec<u8>) -> T) -> T
[src]
fn to_output(self) -> Self::Output
[src]
fn max_definite(&self) -> Option<u64>
[src]
fn write_pos(
self,
value: u64,
tags: impl IntoIterator<Item = u64>
) -> Self::Output
[src]
self,
value: u64,
tags: impl IntoIterator<Item = u64>
) -> Self::Output
fn write_neg(
self,
value: u64,
tags: impl IntoIterator<Item = u64>
) -> Self::Output
[src]
self,
value: u64,
tags: impl IntoIterator<Item = u64>
) -> Self::Output
fn write_bytes(
self,
value: &[u8],
tags: impl IntoIterator<Item = u64>
) -> Self::Output
[src]
self,
value: &[u8],
tags: impl IntoIterator<Item = u64>
) -> Self::Output
fn write_str(
self,
value: &str,
tags: impl IntoIterator<Item = u64>
) -> Self::Output
[src]
self,
value: &str,
tags: impl IntoIterator<Item = u64>
) -> Self::Output
fn write_bool(
self,
value: bool,
tags: impl IntoIterator<Item = u64>
) -> Self::Output
[src]
self,
value: bool,
tags: impl IntoIterator<Item = u64>
) -> Self::Output
fn write_null(self, tags: impl IntoIterator<Item = u64>) -> Self::Output
[src]
fn write_undefined(self, tags: impl IntoIterator<Item = u64>) -> Self::Output
[src]
fn write_lit(
self,
value: Literal,
tags: impl IntoIterator<Item = u64>
) -> Self::Output
[src]
self,
value: Literal,
tags: impl IntoIterator<Item = u64>
) -> Self::Output
fn write_array<F>(
self,
tags: impl IntoIterator<Item = u64>,
f: F
) -> Self::Output where
F: FnOnce(&mut ArrayWriter<'_>),
[src]
self,
tags: impl IntoIterator<Item = u64>,
f: F
) -> Self::Output where
F: FnOnce(&mut ArrayWriter<'_>),
fn write_array_ret<T, F>(
self,
tags: impl IntoIterator<Item = u64>,
f: F
) -> (Self::Output, T) where
F: FnOnce(&mut ArrayWriter<'_>) -> T,
[src]
self,
tags: impl IntoIterator<Item = u64>,
f: F
) -> (Self::Output, T) where
F: FnOnce(&mut ArrayWriter<'_>) -> T,
fn write_dict<F>(
self,
tags: impl IntoIterator<Item = u64>,
f: F
) -> Self::Output where
F: FnOnce(&mut DictWriter<'_>),
[src]
self,
tags: impl IntoIterator<Item = u64>,
f: F
) -> Self::Output where
F: FnOnce(&mut DictWriter<'_>),
fn write_dict_ret<T, F>(
self,
tags: impl IntoIterator<Item = u64>,
f: F
) -> (Self::Output, T) where
F: FnOnce(&mut DictWriter<'_>) -> T,
[src]
self,
tags: impl IntoIterator<Item = u64>,
f: F
) -> (Self::Output, T) where
F: FnOnce(&mut DictWriter<'_>) -> T,
fn write_canonical(self, bytes: &[u8]) -> Option<Self::Output>
[src]
fn write_trusting(self, bytes: &[u8]) -> Self::Output
[src]
Auto Trait Implementations
impl<'a, 'b> RefUnwindSafe for SingleBuilder<'a, 'b>
impl<'a, 'b> Send for SingleBuilder<'a, 'b>
impl<'a, 'b> Sync for SingleBuilder<'a, 'b>
impl<'a, 'b> Unpin for SingleBuilder<'a, 'b> where
'a: 'b,
'a: 'b,
impl<'a, 'b> !UnwindSafe for SingleBuilder<'a, 'b>
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, 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>,