pub struct HeadingHint {
pub chapter: u8,
pub heading: Option<u16>,
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. 2912 for aldehydes).
None when only the chapter can be determined.
rationale: &'static strHuman-readable rationale for the hint.
confidence: f32Confidence in [0.0, 1.0]. Capped at 0.70 because SMILES pattern matching is approximate.
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