Skip to main content

EvmCdWriteTarget

Trait EvmCdWriteTarget 

Source
pub trait EvmCdWriteTarget {
    type Writer<'a>: Write
       where Self: 'a;

    // Required method
    fn writer(&mut self) -> Self::Writer<'_>;
}

Required Associated Types§

Source

type Writer<'a>: Write where Self: 'a

Required Methods§

Source

fn writer(&mut self) -> Self::Writer<'_>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl EvmCdWriteTarget for &mut [u8]

Source§

type Writer<'a> = &'a mut [u8] where Self: 'a

Source§

fn writer(&mut self) -> Self::Writer<'_>

Source§

impl EvmCdWriteTarget for Vec<u8>

Available on crate feature alloc only.
Source§

type Writer<'a> = &'a mut Vec<u8>

Source§

fn writer(&mut self) -> Self::Writer<'_>

Source§

impl EvmCdWriteTarget for [u8]

Source§

type Writer<'a> = &'a mut [u8]

Source§

fn writer(&mut self) -> Self::Writer<'_>

Source§

impl<const N: usize> EvmCdWriteTarget for [u8; N]

Source§

type Writer<'a> = &'a mut [u8]

Source§

fn writer(&mut self) -> Self::Writer<'_>

Implementors§

Source§

impl<const CAP: usize> EvmCdWriteTarget for EvmCdBytes<CAP>

Source§

type Writer<'a> = EvmCdBytesWriter<'a, CAP>