Trait Iden
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§
Implementations on Foreign Types§
§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.