Skip to main content

StringColumn

Trait StringColumn 

Source
#[doc(hidden)]
pub trait StringColumn { // Required method fn __mx_column_str(&self) -> &str; }
Expand description

A String column the borrowed fill writes from &str.

Implemented only for std::string::String. The derive recognises a String column by name and bounds the borrowed impl on this trait, so a user type that happens to be called String never takes the &str path (its borrowed impl does not apply instead).

Required Methods§

Source

fn __mx_column_str(&self) -> &str

The string a column cell is written from.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl StringColumn for String

Implementors§