azalea_buf

Trait McBufReadable

Source
pub trait McBufReadable
where Self: Sized,
{ // Required method fn read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>; }

Required Methods§

Source

fn read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

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 McBufReadable for bool

Source§

fn read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Source§

impl McBufReadable for f32

Source§

fn read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Source§

impl McBufReadable for f64

Source§

fn read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Source§

impl McBufReadable for i8

Source§

fn read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Source§

impl McBufReadable for i16

Source§

fn read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Source§

impl McBufReadable for i32

Source§

fn read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Source§

impl McBufReadable for i64

Source§

fn read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Source§

impl McBufReadable for u8

Source§

fn read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Source§

impl McBufReadable for u16

Source§

fn read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Source§

impl McBufReadable for u32

Source§

fn read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Source§

impl McBufReadable for u64

Source§

fn read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Source§

impl McBufReadable for String

Source§

fn read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Source§

impl McBufReadable for Vec<u8>

Source§

fn read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Source§

impl McBufReadable for Uuid

Source§

fn read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Source§

impl McBufReadable for Nbt

Source§

fn read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Source§

impl McBufReadable for NbtCompound

Source§

fn read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Source§

impl McBufReadable for NbtTag

Source§

fn read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Source§

impl<K: McBufReadable + Send + Eq + Hash, V: McBufReadable + Send> McBufReadable for HashMap<K, V>

Source§

fn read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Source§

impl<T> McBufReadable for Box<T>
where T: McBufReadable,

Source§

fn read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Source§

impl<T: McBufReadable + Send> McBufReadable for Vec<T>

Source§

default fn read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Source§

impl<T: McBufReadable> McBufReadable for Option<T>

Source§

fn read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Source§

impl<T: McBufReadable, const N: usize> McBufReadable for [T; N]

Source§

fn read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError>

Implementors§