Trait rsvg::length::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

Object Safety§

This trait is not object safe.

Implementors§