zerocopy_derive

Trait BoolExt

Source
pub(crate) trait BoolExt {
    // Required method
    fn then_some<T>(self, t: T) -> Option<T>;
}

Required Methods§

Source

fn then_some<T>(self, t: T) -> Option<T>

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 BoolExt for bool

Source§

fn then_some<T>(self, t: T) -> Option<T>

Implementors§