Core.Results
Purpose
Section titled “Purpose”Define the canonical Result<TValue, TError> shape and usage policy.
Baseline shape
Section titled “Baseline shape”pub enum Result<TValue, TError> { Ok(TValue value), Error(TError error),}Usage policy
Section titled “Usage policy”- Use
Result<TValue, TError>when failure is expected. - Do not hide recoverable failure via panic-only APIs.
- Keep
TErrordomain-specific.