cas_codes 0.1.0

A Rust library for parsing, validating, and working with Chemical Abstracts Service (CAS) Registry Numbers
Documentation
1
2
3
4
5
6
7
8
9
//! Submodule providing implementations of the `From` trait for the `CAS` number
//! struct.

impl From<crate::CAS> for u32 {
    /// Converts a `CAS` number to a `u32`.
    fn from(cas: crate::CAS) -> Self {
        cas.0
    }
}