Trait lightningcss::traits::Map

source ·
pub trait Map {
    // Required method
    fn map<F: FnOnce(f32) -> f32>(&self, op: F) -> Self;
}
Expand description

A trait for values that can be mapped by applying a function.

Required Methods§

source

fn map<F: FnOnce(f32) -> f32>(&self, op: F) -> Self

Returns the result of the operation.

Implementors§