pub struct HeadingHint {
pub chapter: u8,
pub heading: Option<u16>,
pub subheading: Option<String>,
pub rationale: &'static str,
pub confidence: f32,
}Expand description
HS chapter / heading hint derived from SMILES functional group analysis.
Fields§
§chapter: u8HS chapter number (e.g. 28, 29).
heading: Option<u16>Four-digit HS heading (e.g. 2914 for ketones).
None when only the chapter can be determined.
subheading: Option<String>Six-digit HS subheading when structural features allow it
(e.g. "291411" for acetone). None when only the 4-digit
heading can be determined.
rationale: &'static strHuman-readable rationale for the hint.
confidence: f32Confidence in [0.0, 1.0]. Capped at 0.70 for heading-only results; up to 0.90 when a specific 6-digit subheading is identified.
Trait Implementations§
Source§impl Clone for HeadingHint
impl Clone for HeadingHint
Source§fn clone(&self) -> HeadingHint
fn clone(&self) -> HeadingHint
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 HeadingHint
impl Debug for HeadingHint
Auto Trait Implementations§
impl Freeze for HeadingHint
impl RefUnwindSafe for HeadingHint
impl Send for HeadingHint
impl Sync for HeadingHint
impl Unpin for HeadingHint
impl UnsafeUnpin for HeadingHint
impl UnwindSafe for HeadingHint
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