pub trait Iden: Send + Sync {
// Required method
fn unquoted(&self, s: &mut dyn Write);
// Provided methods
fn prepare(&self, s: &mut dyn Write, q: Quote) { ... }
fn quoted(&self, q: Quote) -> String { ... }
fn to_string(&self) -> String { ... }
}Expand description
Identifier
Required Methods§
Provided Methods§
Trait Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl Iden for &str
The “base” impl for writing arbitrary “raw” strings as identifiers.
impl Iden for &str
The “base” impl for writing arbitrary “raw” strings as identifiers.
Reused for other string-like types.