azalea_buf

Trait McBufWritable

Source
pub trait McBufWritable {
    // Required method
    fn write_into(&self, buf: &mut impl Write) -> Result<(), Error>;
}

Required Methods§

Source

fn write_into(&self, buf: &mut impl Write) -> Result<(), Error>

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 McBufWritable for &str

Source§

fn write_into(&self, buf: &mut impl Write) -> Result<(), Error>

Source§

impl McBufWritable for bool

Source§

fn write_into(&self, buf: &mut impl Write) -> Result<(), Error>

Source§

impl McBufWritable for f32

Source§

fn write_into(&self, buf: &mut impl Write) -> Result<(), Error>

Source§

impl McBufWritable for f64

Source§

fn write_into(&self, buf: &mut impl Write) -> Result<(), Error>

Source§

impl McBufWritable for i8

Source§

fn write_into(&self, buf: &mut impl Write) -> Result<(), Error>

Source§

impl McBufWritable for i16

Source§

fn write_into(&self, buf: &mut impl Write) -> Result<(), Error>

Source§

impl McBufWritable for i32

Source§

fn write_into(&self, buf: &mut impl Write) -> Result<(), Error>

Source§

impl McBufWritable for i64

Source§

fn write_into(&self, buf: &mut impl Write) -> Result<(), Error>

Source§

impl McBufWritable for u8

Source§

fn write_into(&self, buf: &mut impl Write) -> Result<(), Error>

Source§

impl McBufWritable for u16

Source§

fn write_into(&self, buf: &mut impl Write) -> Result<(), Error>

Source§

impl McBufWritable for u32

Source§

fn write_into(&self, buf: &mut impl Write) -> Result<(), Error>

Source§

impl McBufWritable for u64

Source§

fn write_into(&self, buf: &mut impl Write) -> Result<(), Error>

Source§

impl McBufWritable for String

Source§

fn write_into(&self, buf: &mut impl Write) -> Result<(), Error>

Source§

impl McBufWritable for Vec<u8>

Source§

fn write_into(&self, buf: &mut impl Write) -> Result<(), Error>

Source§

impl McBufWritable for Uuid

Source§

fn write_into(&self, buf: &mut impl Write) -> Result<(), Error>

Source§

impl McBufWritable for Nbt

Source§

fn write_into(&self, buf: &mut impl Write) -> Result<(), Error>

Source§

impl McBufWritable for NbtCompound

Source§

fn write_into(&self, buf: &mut impl Write) -> Result<(), Error>

Source§

impl McBufWritable for NbtTag

Source§

fn write_into(&self, buf: &mut impl Write) -> Result<(), Error>

Source§

impl<K: McBufWritable, V: McBufWritable> McBufWritable for HashMap<K, V>

Source§

fn write_into(&self, buf: &mut impl Write) -> Result<(), Error>

Source§

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

Source§

fn write_into(&self, buf: &mut impl Write) -> Result<(), Error>

Source§

impl<T: McBufWritable> McBufWritable for Option<T>

Source§

fn write_into(&self, buf: &mut impl Write) -> Result<(), Error>

Source§

impl<T: McBufWritable> McBufWritable for [T]

Source§

fn write_into(&self, buf: &mut impl Write) -> Result<(), Error>

Source§

impl<T: McBufWritable> McBufWritable for Vec<T>

Source§

default fn write_into(&self, buf: &mut impl Write) -> Result<(), Error>

Source§

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

Source§

fn write_into(&self, buf: &mut impl Write) -> Result<(), Error>

Implementors§