Property

Trait Property 

Source
pub trait Property {
    type Value;
    type Error;

    // Required method
    fn validate(value: &Self::Value) -> Result<(), Self::Error>;
}
Expand description

Trait that represents the property of the value.

Required Associated Types§

Source

type Value

Value type.

Source

type Error

Validation error type.

Required Methods§

Source

fn validate(value: &Self::Value) -> Result<(), Self::Error>

Method for validating value.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§