Struct mesh_protobuf::table::encode::EncoderEntry
source · pub struct EncoderEntry<T, R>(/* private fields */);
Expand description
An entry in the encoder table.
This contains the metadata necessary to apply an encoder to a field.
This cannot be instantiated directly; use FieldEncode::ENTRY
to get an
instance for a particular encoder.
Implementations§
source§impl<T, R> EncoderEntry<T, R>
impl<T, R> EncoderEntry<T, R>
sourcepub const fn erase(&self) -> ErasedEncoderEntry
pub const fn erase(&self) -> ErasedEncoderEntry
Return the type-erased encoder entry.
Auto Trait Implementations§
impl<T, R> Freeze for EncoderEntry<T, R>
impl<T, R> RefUnwindSafe for EncoderEntry<T, R>
impl<T, R> !Send for EncoderEntry<T, R>
impl<T, R> !Sync for EncoderEntry<T, R>
impl<T, R> Unpin for EncoderEntry<T, R>
impl<T, R> UnwindSafe for EncoderEntry<T, R>
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