Struct cld2::DetectionResult [] [src]

pub struct DetectionResult {
    pub language: Option<Lang>,
    pub scores: [LanguageScore; 3],
    pub text_bytes: i32,
    pub reliability: Reliability,
    // some fields omitted
}

Detailed language detection results.

Note: Do not rely on this struct containing only the fields listed below. It may gain extra fields in the future.

Fields

The language detected.

The scores for the top 3 candidate languages.

The number of bytes of actual text found, excluding tags, etc.

Is this guess reliable?

Methods

impl DetectionResult
[src]

EXPERIMENTAL: Create a new DetectionResult. You generally don't need to call this directly.

Trait Implementations

impl Clone for DetectionResult
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for DetectionResult
[src]