pub struct Span {
pub start: usize,
pub end: usize,
pub kind: PiiKind,
pub score: f32,
pub name: Option<String>,
}Expand description
One detected span: byte offsets into the text it was detected on, the kind, the detector’s confidence (1.0 for a pattern) and, for a custom pattern, its name (the label).
Fields§
§start: usize§end: usize§kind: PiiKind§score: f32§name: Option<String>Implementations§
Trait Implementations§
impl StructuralPartialEq for Span
Auto Trait Implementations§
impl Forget for Span
impl Freeze for Span
impl Move for Span
impl RefUnwindSafe for Span
impl Send for Spanwhere
RawVecInner: Send,
impl Sync for Spanwhere
RawVecInner: Sync,
impl Unpin for Span
impl UnsafeUnpin for Span
impl UnwindSafe for Spanwhere
RawVecInner: UnwindSafe,
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