Skip to main content

RawScalarValidate

Trait RawScalarValidate 

Source
pub trait RawScalarValidate: Sized {
    type ValidationError: Error;

    // Required method
    fn validate_raw_scalar_ref(&self) -> Result<(), Self::ValidationError>;

    // Provided methods
    fn validate_raw_scalar(self) -> Result<Self, Self::ValidationError> { ... }
    fn validate_in_debug_raw_scalar(self) -> Result<Self, Self::ValidationError> { ... }
    fn validate_in_debug_raw_scalar_ref(
        &self,
    ) -> Result<(), Self::ValidationError> { ... }
}

Required Associated Types§

Required Methods§

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl RawScalarValidate for Complex

Source§

impl RawScalarValidate for Float

Source§

impl<T: NativeReal> RawScalarValidate for Complex<T>

Implementors§