pub struct DecoderRecognizer;Expand description
Phase-D probabilistic marking recognizer.
Stateless — all priors are baked &'static tables consumed at
scoring time. Cheaply constructible; the engine holds a single
instance behind Arc for the lifetime of one crate::Engine.
When ParseContext::strict_evidence == true the decoder defers to
the strict path by returning a zero-candidate result. The engine
is responsible for calling the strict recognizer first and only
invoking the decoder on deep-scan regions (see
crate::Engine::lint dispatch).
Implementations§
Trait Implementations§
Source§impl Clone for DecoderRecognizer
impl Clone for DecoderRecognizer
Source§fn clone(&self) -> DecoderRecognizer
fn clone(&self) -> DecoderRecognizer
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 DecoderRecognizer
impl Debug for DecoderRecognizer
Source§impl Default for DecoderRecognizer
impl Default for DecoderRecognizer
Source§fn default() -> DecoderRecognizer
fn default() -> DecoderRecognizer
Returns the “default value” for a type. Read more
Source§impl Recognizer<CapcoScheme> for DecoderRecognizer
impl Recognizer<CapcoScheme> for DecoderRecognizer
Source§fn recognize(&self, bytes: &[u8], cx: &ParseContext) -> Parsed<CapcoMarking>
fn recognize(&self, bytes: &[u8], cx: &ParseContext) -> Parsed<CapcoMarking>
Recognize a marking from raw bytes. Read more
impl Copy for DecoderRecognizer
Auto Trait Implementations§
impl Freeze for DecoderRecognizer
impl RefUnwindSafe for DecoderRecognizer
impl Send for DecoderRecognizer
impl Sync for DecoderRecognizer
impl Unpin for DecoderRecognizer
impl UnsafeUnpin for DecoderRecognizer
impl UnwindSafe for DecoderRecognizer
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