pub struct Replacer;Implementations§
Source§impl Replacer
impl Replacer
Sourcepub fn pseudonymize(
text: &str,
entities: &[DetectedEntity],
vault: &mut Vault,
) -> Result<PseudonymizedText>
pub fn pseudonymize( text: &str, entities: &[DetectedEntity], vault: &mut Vault, ) -> Result<PseudonymizedText>
Replace all detected entities in the text with pseudo-tokens. Entities must be sorted by position (start offset) and non-overlapping.
Auto Trait Implementations§
impl Freeze for Replacer
impl RefUnwindSafe for Replacer
impl Send for Replacer
impl Sync for Replacer
impl Unpin for Replacer
impl UnsafeUnpin for Replacer
impl UnwindSafe for Replacer
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