Trait parcel_css::traits::Sign
source · [−]pub trait Sign {
fn sign(&self) -> f32;
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
Provided Methods
sourcefn is_sign_positive(&self) -> bool
fn is_sign_positive(&self) -> bool
Returns whether the value is positive.
sourcefn is_sign_negative(&self) -> bool
fn is_sign_negative(&self) -> bool
Returns whether the value is negative.