Skip to main content

bytes

Function bytes 

Source
pub fn bytes(dictionary: &str) -> Result<&'static [u8]>
Expand description

The bytes of the model embedded for a dictionary.

§Arguments

  • dictionary - The name of the dictionary, as ipadic.

§Returns

The bytes of the model file, or an Error::Embedded: for a dictionary no feature embeds a model for, for a build without the feature (the message names it), and for a documentation build, which embeds an empty file.