Struct fidl_next::encoder::BasicEncoder
source · pub struct BasicEncoder { /* private fields */ }
Expand description
A basic FIDL encoder.
Basic FIDL encoders do not support resources.
Implementations§
Trait Implementations§
source§impl Default for BasicEncoder
impl Default for BasicEncoder
source§fn default() -> BasicEncoder
fn default() -> BasicEncoder
Returns the “default value” for a type. Read more
source§impl Encoder for BasicEncoder
impl Encoder for BasicEncoder
source§fn bytes_written(&self) -> usize
fn bytes_written(&self) -> usize
Returns the number of bytes written to the encoder.
Auto Trait Implementations§
impl Freeze for BasicEncoder
impl RefUnwindSafe for BasicEncoder
impl Send for BasicEncoder
impl Sync for BasicEncoder
impl Unpin for BasicEncoder
impl UnwindSafe for BasicEncoder
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
source§impl<E> EncoderExt for E
impl<E> EncoderExt for E
source§fn preallocate<T>(&mut self, len: usize) -> Preallocated<'_, E, T>
fn preallocate<T>(&mut self, len: usize) -> Preallocated<'_, E, T>
Pre-allocates space for a slice of elements.
source§fn encode_slice<T>(&mut self, values: &mut [T]) -> Result<(), EncodeError>where
T: Encode<E>,
fn encode_slice<T>(&mut self, values: &mut [T]) -> Result<(), EncodeError>where
T: Encode<E>,
Encodes a slice of elements. Read more