Skip to main content

atom_display_label

Function atom_display_label 

Source
pub fn atom_display_label(
    element: &str,
    imp_hs: u32,
    charge: i32,
) -> Option<String>
Expand description

Build a display label from element, implicit H count, and formal charge.

Silent carbons (C with charge 0) return None. Hydrogens become OH / NH2; charge is left for crate::depict / callers that append via AtomIn.charge, or pass charge here to bake it in (RDKit host path).