Skip to main content

Crate chardet

Crate chardet 

Source
Expand description

Universal character encoding detector — Rust port of chardet 7.

Re-exports§

pub use pipeline::orchestrator::run_pipeline;
pub use pipeline::orchestrator::PipelineOptions;
pub use result::DetectionResult;

Modules§

codecs
Exact CPython-compatible codec validity and decoding.
enums
Bit-flag encoding eras, mirroring chardet.enums.EncodingEra.
models
Bigram model loading and scoring, mirroring chardet.models.
output_names
Public-API encoding-name remapping, mirroring chardet.output_names.
pipeline
Detection pipeline stages and shared constants.
registry
Encoding registry and name lookup, mirroring chardet.registry.
result
Shared pipeline types: DetectionResult and PipelineContext.
utils
Shared constants and helpers, mirroring chardet._utils.

Structs§

DetectOptions
Public options for detect and detect_all.

Functions§

detect
Detect the encoding of data, applying the public output-name transforms.
detect_all
Return all candidate results sorted by descending confidence.
detect_with
Like detect, with explicit options.