Skip to main content

CheckOutcome

Trait CheckOutcome 

Source
pub trait CheckOutcome {
    // Required method
    fn into_issues(
        self,
        field: &str,
        code: &str,
        reason: &str,
    ) -> Vec<FieldIssue>;
}
Expand description

Result types supported by arbitrary #[check(with = ...)] functions and closures.

Required Methods§

Source

fn into_issues(self, field: &str, code: &str, reason: &str) -> Vec<FieldIssue>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl CheckOutcome for bool

Source§

fn into_issues(self, field: &str, code: &str, reason: &str) -> Vec<FieldIssue>

Source§

impl<E: IntoSyncError> CheckOutcome for Result<(), E>

Source§

fn into_issues(self, field: &str, code: &str, _reason: &str) -> Vec<FieldIssue>

Source§

impl<E: IntoSyncError> CheckOutcome for Result<bool, E>

Source§

fn into_issues(self, field: &str, code: &str, reason: &str) -> Vec<FieldIssue>

Implementors§