#[non_exhaustive]pub struct EmittedTokenSpan {
pub clean_span: Range<usize>,
pub raw_span: Range<usize>,
pub class: PiiClass,
}Expand description
A replacement emitted by the pseudonymization pipeline.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.clean_span: Range<usize>Byte span in the clean text.
raw_span: Range<usize>Byte span in the raw text that produced the token.
class: PiiClassPII class represented by the emitted token.
Implementations§
Trait Implementations§
Source§impl Clone for EmittedTokenSpan
impl Clone for EmittedTokenSpan
Source§fn clone(&self) -> EmittedTokenSpan
fn clone(&self) -> EmittedTokenSpan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EmittedTokenSpan
impl Debug for EmittedTokenSpan
Source§impl PartialEq for EmittedTokenSpan
impl PartialEq for EmittedTokenSpan
Source§fn eq(&self, other: &EmittedTokenSpan) -> bool
fn eq(&self, other: &EmittedTokenSpan) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for EmittedTokenSpan
impl StructuralPartialEq for EmittedTokenSpan
Auto Trait Implementations§
impl Freeze for EmittedTokenSpan
impl RefUnwindSafe for EmittedTokenSpan
impl Send for EmittedTokenSpan
impl Sync for EmittedTokenSpan
impl Unpin for EmittedTokenSpan
impl UnsafeUnpin for EmittedTokenSpan
impl UnwindSafe for EmittedTokenSpan
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