pub struct EncoderBox(pub Box<dyn BytecodeEncoder>);Expand description
An owned bytecode encoder. A newtype so BytecodeBuilder can stay Debug
without requiring BytecodeEncoder: Debug.
Tuple Fields§
§0: Box<dyn BytecodeEncoder>Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for EncoderBox
impl !Send for EncoderBox
impl !Sync for EncoderBox
impl !UnwindSafe for EncoderBox
impl Forget for EncoderBox
impl Freeze for EncoderBox
impl Move for EncoderBox
impl Unpin for EncoderBox
impl UnsafeUnpin for EncoderBoxwhere
*const dyn BytecodeEncoder is !null: UnsafeUnpin,
PhantomData<dyn BytecodeEncoder>: UnsafeUnpin,
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