Trait IpcTypeReader

Source
pub trait IpcTypeReader {
    type OutType;

    // Required method
    fn read_buffer(ib: &IpcBuffer, off: &mut usize) -> Self::OutType;
}

Required Associated Types§

Required Methods§

Source

fn read_buffer(ib: &IpcBuffer, off: &mut usize) -> Self::OutType

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl IpcTypeReader for &[u8]

Source§

type OutType = Vec<u8>

Source§

fn read_buffer(ib: &IpcBuffer, off: &mut usize) -> Self::OutType

Source§

impl IpcTypeReader for &str

Source§

type OutType = String

Source§

fn read_buffer(ib: &IpcBuffer, off: &mut usize) -> Self::OutType

Source§

impl IpcTypeReader for String

Source§

type OutType = String

Source§

fn read_buffer(ib: &IpcBuffer, off: &mut usize) -> Self::OutType

Source§

impl IpcTypeReader for i8

Source§

type OutType = i8

Source§

fn read_buffer(ib: &IpcBuffer, off: &mut usize) -> Self::OutType

Source§

impl IpcTypeReader for i16

Source§

type OutType = i16

Source§

fn read_buffer(ib: &IpcBuffer, off: &mut usize) -> Self::OutType

Source§

impl IpcTypeReader for i32

Source§

type OutType = i32

Source§

fn read_buffer(ib: &IpcBuffer, off: &mut usize) -> Self::OutType

Source§

impl IpcTypeReader for i64

Source§

type OutType = i64

Source§

fn read_buffer(ib: &IpcBuffer, off: &mut usize) -> Self::OutType

Source§

impl IpcTypeReader for u8

Source§

type OutType = u8

Source§

fn read_buffer(ib: &IpcBuffer, off: &mut usize) -> Self::OutType

Source§

impl IpcTypeReader for u16

Source§

type OutType = u16

Source§

fn read_buffer(ib: &IpcBuffer, off: &mut usize) -> Self::OutType

Source§

impl IpcTypeReader for u32

Source§

type OutType = u32

Source§

fn read_buffer(ib: &IpcBuffer, off: &mut usize) -> Self::OutType

Source§

impl IpcTypeReader for u64

Source§

type OutType = u64

Source§

fn read_buffer(ib: &IpcBuffer, off: &mut usize) -> Self::OutType

Source§

impl IpcTypeReader for usize

Source§

type OutType = usize

Source§

fn read_buffer(ib: &IpcBuffer, off: &mut usize) -> Self::OutType

Implementors§