Trait citadel_sdk::prelude::IfTrueConditional

pub trait IfTrueConditional<J> {
    // Required methods
    fn if_true(self, if_true: J) -> IfEq<J>;
    fn if_true_then(self, if_true: impl FnOnce() -> J) -> IfEq<J>;
    fn if_false(self, if_false: J) -> IfEq<J>;
    fn if_false_then(self, if_false: impl FnOnce() -> J) -> IfEq<J>;
}

Required Methods§

fn if_true(self, if_true: J) -> IfEq<J>

fn if_true_then(self, if_true: impl FnOnce() -> J) -> IfEq<J>

fn if_false(self, if_false: J) -> IfEq<J>

fn if_false_then(self, if_false: impl FnOnce() -> J) -> IfEq<J>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl<J> IfTrueConditional<J> for bool

§

fn if_true(self, if_true: J) -> IfEq<J>

§

fn if_true_then(self, if_true: impl FnOnce() -> J) -> IfEq<J>

§

fn if_false(self, if_false: J) -> IfEq<J>

§

fn if_false_then(self, if_false: impl FnOnce() -> J) -> IfEq<J>

Implementors§