DecompositionResult

Type Alias DecompositionResult 

Source
pub type DecompositionResult = Result<Vec<String>, DecompositionError>;
Expand description

Result of a decompound operation.

Note constituent words are returned as owned, even if that’s not (always) necessary. It is necessary when titlecasing is enabled (DecompositionOptions::TRY_TITLECASE_SUFFIX), at which point it’s easier to always return owned versions, even when unnecessary.

Aliased Type§

pub enum DecompositionResult {
    Ok(Vec<String>),
    Err(DecompositionError),
}

Variants§

§1.0.0

Ok(Vec<String>)

Contains the success value

§1.0.0

Err(DecompositionError)

Contains the error value