pub struct ComponentEncodeScratch { /* private fields */ }Expand description
Caller-owned reusable storage for typed component encoding.
Implementations§
Source§impl ComponentEncodeScratch
impl ComponentEncodeScratch
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Creates encoding scratch with an initial byte capacity.
Sourcepub fn retained_capacity(&self) -> usize
pub fn retained_capacity(&self) -> usize
Retained byte capacity available to subsequent encodes.
Trait Implementations§
Source§impl Clone for ComponentEncodeScratch
impl Clone for ComponentEncodeScratch
Source§fn clone(&self) -> ComponentEncodeScratch
fn clone(&self) -> ComponentEncodeScratch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComponentEncodeScratch
impl Debug for ComponentEncodeScratch
Source§impl Default for ComponentEncodeScratch
impl Default for ComponentEncodeScratch
Source§fn default() -> ComponentEncodeScratch
fn default() -> ComponentEncodeScratch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ComponentEncodeScratch
impl RefUnwindSafe for ComponentEncodeScratch
impl Send for ComponentEncodeScratch
impl Sync for ComponentEncodeScratch
impl Unpin for ComponentEncodeScratch
impl UnsafeUnpin for ComponentEncodeScratch
impl UnwindSafe for ComponentEncodeScratch
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