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§
Ok(Vec<String>)
Contains the success value
Err(DecompositionError)
Contains the error value