macro_toolset::string_v2

Trait PushAnyT

Source
pub trait PushAnyT {
    // Required methods
    fn push_any<V>(&mut self, value: V)
       where V: StringT;
    fn push_any_with_separator<V>(&mut self, value: V, sep: &str)
       where V: StringT;
}
Expand description

Trait helper for push any string-like type to the string.

Required Methods§

Source

fn push_any<V>(&mut self, value: V)
where V: StringT,

Push any string-like type to the string.

Source

fn push_any_with_separator<V>(&mut self, value: V, sep: &str)
where V: StringT,

Push any string-like type to the string with a separator.

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 PushAnyT for String

Source§

fn push_any<V>(&mut self, value: V)
where V: StringT,

Source§

fn push_any_with_separator<V>(&mut self, value: V, sep: &str)
where V: StringT,

Source§

impl PushAnyT for Vec<u8>

Source§

fn push_any<V>(&mut self, value: V)
where V: StringT,

Source§

fn push_any_with_separator<V>(&mut self, value: V, sep: &str)
where V: StringT,

Source§

impl PushAnyT for BytesMut

Source§

fn push_any<V>(&mut self, value: V)
where V: StringT,

Source§

fn push_any_with_separator<V>(&mut self, value: V, sep: &str)
where V: StringT,

Implementors§