Skip to main content

ProjectedOutput

Struct ProjectedOutput 

Source
pub struct ProjectedOutput<'scope> { /* private fields */ }
Expand description

The caller’s destination for one projected Serde write.

Implementations§

Source§

impl<'scope> ProjectedOutput<'scope>

Source

pub const fn context(&self) -> WriteContext<'scope>

Borrow the meter for envelope preparation, including during traversal.

Source

pub fn write<T: Serialize>(self, value: &Projected<'_, T>) -> Result<(), Error>

Consume this destination and serialize the DTO in the current scope.

§Errors

Returns a serialization or allowance error. The destination’s bytes are available only from the successful outer operation.

Auto Trait Implementations§

§

impl<'scope> !RefUnwindSafe for ProjectedOutput<'scope>

§

impl<'scope> !Send for ProjectedOutput<'scope>

§

impl<'scope> !Sync for ProjectedOutput<'scope>

§

impl<'scope> !UnwindSafe for ProjectedOutput<'scope>

§

impl<'scope> Forget for ProjectedOutput<'scope>

§

impl<'scope> Freeze for ProjectedOutput<'scope>
where &'scope mut [u8]: Freeze, &'scope Budget: Freeze, &'scope mut Option<usize>: Freeze,

§

impl<'scope> Move for ProjectedOutput<'scope>

§

impl<'scope> Unpin for ProjectedOutput<'scope>
where &'scope mut [u8]: Unpin, &'scope Budget: Unpin, &'scope mut Option<usize>: Unpin,

§

impl<'scope> UnsafeUnpin for ProjectedOutput<'scope>
where &'scope mut [u8]: UnsafeUnpin, &'scope Budget: UnsafeUnpin, &'scope mut Option<usize>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.