Validate

Trait Validate 

Source
pub trait Validate {
    // Provided method
    fn validate(v: f64) -> Result<f64, ValueErrorKind> { ... }
}
Expand description

Used for the V type parameter of CssLength<N: Normalize, V: Validate>.

Provided Methods§

Source

fn validate(v: f64) -> Result<f64, ValueErrorKind>

Checks if the specified value is acceptable

This is used when parsing a length 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§