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>

Object Safety§

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§