faclair 0.1.0

HTTP Client for the learngaelic.scot Scottish Gaelic dictionary
Documentation
  • Coverage
  • 100%
    26 out of 26 items documented1 out of 8 items with examples
  • Size
  • Source code size: 142.68 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 722.96 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 29s Average build duration of successful builds.
  • all releases: 29s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • pwoolcoc

Faclair

This is an http client for the learngaelic.scot Scottish Gaelic dictionary.

Example

use faclair::{self, Options, Language};

fn main() -> Result<(), faclair::Error> {
    let results = faclair::search("saor")?;
    for result in results {
        println!("{} -> {}", result.headword, result.translation);
    }

    let options = Options::default();
    options.whole_word();
    options.language(Language::Both);

    let results = faclair::search_with_options("saor", options)?;
    for result in results {
        println!("{} -> {}", result.headword, result.translation);
    }

    Ok(())
}