Struct rustrict::Replacements
source · pub struct Replacements(_);Expand description
Set of possible interpretations for an input character.
For example, A can be replaced with a so the word apple matches Apple.
Implementations§
source§impl Replacements
impl Replacements
sourcepub unsafe fn customize_default() -> &'static mut Self
pub unsafe fn customize_default() -> &'static mut Self
Allows direct mutable access to the global default set of replacements.
Prefer the safe API Censor::with_replacements.
Safety
You must manually avoid concurrent access/censoring.
Trait Implementations§
source§impl Clone for Replacements
impl Clone for Replacements
source§fn clone(&self) -> Replacements
fn clone(&self) -> Replacements
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more