Skip to main content

Sink

Trait Sink 

Source
pub trait Sink {
    // Required method
    fn push_str(&mut self, s: &str);
}
Expand description

A text sink.

Required Methods§

Source

fn push_str(&mut self, s: &str)

Appends s.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Sink for String

Source§

fn push_str(&mut self, s: &str)

Implementors§