Trait lightningcss::traits::Sign

source ·
pub trait Sign {
    // Required method
    fn sign(&self) -> f32;

    // Provided methods
    fn is_sign_positive(&self) -> bool { ... }
    fn is_sign_negative(&self) -> bool { ... }
}
Expand description

A trait for values that can return a sign.

Required Methods§

source

fn sign(&self) -> f32

Returns the sign of the value.

Provided Methods§

source

fn is_sign_positive(&self) -> bool

Returns whether the value is positive.

source

fn is_sign_negative(&self) -> bool

Returns whether the value is negative.

Implementors§