pub struct ScatterPlan<'a> { /* private fields */ }Expand description
A scatter/gather postcard serialization plan.
Implementations§
Source§impl<'a> ScatterPlan<'a>
impl<'a> ScatterPlan<'a>
Sourcepub const fn total_size(&self) -> usize
pub const fn total_size(&self) -> usize
Returns the exact serialized size in bytes.
Sourcepub fn segments(&self) -> &[Segment<'a>]
pub fn segments(&self) -> &[Segment<'a>]
Returns the ordered segments that form the serialized output.
Sourcepub fn write_into(&self, dest: &mut [u8]) -> Result<(), SerializeError>
pub fn write_into(&self, dest: &mut [u8]) -> Result<(), SerializeError>
Writes the full serialized output into dest.
dest must be exactly Self::total_size bytes long.
Trait Implementations§
Source§impl<'a> Clone for ScatterPlan<'a>
impl<'a> Clone for ScatterPlan<'a>
Source§fn clone(&self) -> ScatterPlan<'a>
fn clone(&self) -> ScatterPlan<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for ScatterPlan<'a>
impl<'a> RefUnwindSafe for ScatterPlan<'a>
impl<'a> Send for ScatterPlan<'a>
impl<'a> Sync for ScatterPlan<'a>
impl<'a> Unpin for ScatterPlan<'a>
impl<'a> UnsafeUnpin for ScatterPlan<'a>
impl<'a> UnwindSafe for ScatterPlan<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more