cus
一种CUSIP类型,用于与定义的经过验证的统一安全性识别程序委员会(CUSIP)标识符。
用法
将此添加到您的Cargo.toml :
[ dependencies ]
cusip = " 0.1 "
例子
use cusip;
let cusip_string = "023135106" ; // Amazon.com Inc - Common Stock
match cusip :: parse_strict (cusip_string) {
Ok (cusip) => {
println! ( "Parsed CUSIP: {}" , cusip. to_string ()); // "023135106"
println! ( " Issuer number: {}" , cusip. issuer_num ()); // "02