pub struct SimpleRedactor { /* private fields */ }Expand description
A redactor that performs a variety of simple transformations on the input text.
Implementations§
Source§impl SimpleRedactor
impl SimpleRedactor
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new instance with the default mode of SimpleRedactorMode::Replace('*').
Sourcepub const fn with_mode(mode: SimpleRedactorMode) -> Self
pub const fn with_mode(mode: SimpleRedactorMode) -> Self
Creates a new instance with an explicit mode of operation.
Sourcepub const fn mode(&self) -> &SimpleRedactorMode
pub const fn mode(&self) -> &SimpleRedactorMode
Returns the current mode of operation.
Trait Implementations§
Source§impl Clone for SimpleRedactor
impl Clone for SimpleRedactor
Source§fn clone(&self) -> SimpleRedactor
fn clone(&self) -> SimpleRedactor
Returns a duplicate 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 SimpleRedactor
impl Debug for SimpleRedactor
Source§impl Default for SimpleRedactor
impl Default for SimpleRedactor
Auto Trait Implementations§
impl Freeze for SimpleRedactor
impl RefUnwindSafe for SimpleRedactor
impl Send for SimpleRedactor
impl Sync for SimpleRedactor
impl Unpin for SimpleRedactor
impl UnsafeUnpin for SimpleRedactor
impl UnwindSafe for SimpleRedactor
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