Skip to main content

Put

Trait Put 

pub trait Put {
    // Required method
    fn put_to(&self, out: &mut Writer);
}
Expand description

What can be written: every Wire value, and the borrowed forms a call passes (&str, &[T], Option<&T>), which are written as the owned value they stand for.

Required Methods§

fn put_to(&self, out: &mut Writer)

Writes it.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

§

impl Put for str

§

fn put_to(&self, out: &mut Writer)

§

impl<T> Put for [T]
where T: Put,

§

fn put_to(&self, out: &mut Writer)

Implementors§

§

impl Put for ApplyEffectTickEvent<'_>

§

impl Put for ModBlockEntityView<'_>

§

impl Put for TooltipDisplay<'_>

§

impl<T> Put for T
where T: Wire,