Struct rustrict::Replacements
source · pub struct Replacements(/* private fields */);
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
Available on crate feature customize
only.
pub unsafe fn customize_default() -> &'static mut Self
customize
only.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 moresource§impl Debug for Replacements
impl Debug for Replacements
Auto Trait Implementations§
impl RefUnwindSafe for Replacements
impl Send for Replacements
impl Sync for Replacements
impl Unpin for Replacements
impl UnwindSafe for Replacements
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more