#[non_exhaustive]pub struct Finding {
pub detector: DetectorId,
pub offset: usize,
}Expand description
A detector’s hit: which one, and where. Never the value (B-9).
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.detector: DetectorIdThe detector that fired.
offset: usizeThe byte offset into the scanned text, on a character boundary (B-7).
Trait Implementations§
impl Copy for Finding
impl Eq for Finding
impl StructuralPartialEq for Finding
Auto Trait Implementations§
impl Forget for Finding
impl Freeze for Finding
impl Move for Finding
impl RefUnwindSafe for Finding
impl Send for Finding
impl Sync for Finding
impl Unpin for Finding
impl UnsafeUnpin for Findingwhere
&'static str: UnsafeUnpin,
impl UnwindSafe for Findingwhere
&'static str: 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