layers::prelude::taffy::style_helpers

Trait TaffyZero

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

Trait to abstract over zero values

Required Associated Constants§

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§

§

impl TaffyZero for f32

§

const ZERO: f32 = 0f32

§

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

§

const ZERO: Option<T>

Implementors§