bras 0.1.2

Library for parsing brazilian documents
Documentation
  • Coverage
  • 25%
    1 out of 4 items documented1 out of 1 items with examples
  • Size
  • Source code size: 10.13 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 448.76 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • israelyago/bras
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • israelyago

Examples

use core::str::FromStr;
use bras::{Cpf, ParseCpfError};

fn main() -> Result<(), ParseCpfError>{

    let cpf = Cpf::try_from(1678346063)?;
    let cpf = "01678346063".parse::<Cpf>()?;
    let cpf: Cpf = "01678346063".parse()?;
    let cpf = Cpf::from_str("01678346063")?; // Need: use core::str::FromStr;

    Ok(())
}

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.