Constr

Trait Constr 

Source
pub trait Constr {
    const STR: &'static str;
}
Expand description

Constant string “type”.

To get around the lack of constant string generics, we use types that implement this trait to provide generic strings instead.

To easily construct zero-sized types which implement this trait, see constr!.

Required Associated Constants§

Source

const STR: &'static str

String value.

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.

Implementors§

Source§

impl Constr for Empty

Source§

const STR: &'static str = ""