pub enum Recognition {
Definite,
Plausible,
No {
reason: Option<String>,
},
}Expand description
How strongly an engine claims a candidate model as its own (spec §2.5).
This is the whole vocabulary of the recognition contract. The foundation layer holds no section names and no format grammar — the judgement is authored entirely by the engine; this type only gives every engine the same three words to express it in.
Recognition answers “whose is this?”, never “can this run?”. A
Definite verdict is not a promise that the model is
well-formed: the owning engine’s parse may still reject it.
Variants§
Definite
The bytes carry a marker belonging to this engine’s format and to no other.
Plausible
The bytes are shaped like this engine’s format but carry nothing distinguishing them from another engine claiming the same shape.
No
Not this engine’s — the format is unrecognised, or the bytes carry another format’s marker.
Implementations§
Trait Implementations§
Source§impl Clone for Recognition
impl Clone for Recognition
Source§fn clone(&self) -> Recognition
fn clone(&self) -> Recognition
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more