pub trait Redactor:
Send
+ Sync
+ Debug {
// Required method
fn redact<'a>(&self, text: &'a str) -> Cow<'a, str>;
// Provided method
fn is_empty(&self) -> bool { ... }
}Expand description
Something that rewrites text before it leaves the runtime.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".