func IdFromInt(nuc int) (Nuc, error) { n := Nuc(C.id_int(C.int(nuc))) if n < 0 { return 0, fmt.Errorf("'%v' is not a valid nuclide", nuc) } return n, nil }
func IdFromInt(nuc int) Nuc { return Nuc(C.id_int(C.int(nuc))) }