taffy::style_helpers

Trait TaffyZero

Source
pub trait TaffyZero {
    const ZERO: Self;
}
Expand description

Trait to abstract over zero values

Required Associated Constants§

Source

const ZERO: Self

The zero value for type implementing TaffyZero

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.

Implementations on Foreign Types§

Source§

impl TaffyZero for f32

Source§

const ZERO: f32 = 0f32

Source§

impl<T: TaffyZero> TaffyZero for Option<T>

Implementors§