pub trait ConfMergable<T, O> {
    type Result;

    // Required method
    fn merge(self, other: O) -> Self::Result;
}

Required Associated Types§

Required Methods§

source

fn merge(self, other: O) -> Self::Result

Merge two confidence types’ values depending on whichever has higher confidence In the event of a tie, the LHS (caller’s) value is used.

Implementations on Foreign Types§

source§

impl<T> ConfMergable<T, Option<Conf<T>>> for Option<Conf<T>>

Returns best non-None value or None

Option<Conf<T>> + Option<Conf<T>>Option<Conf<T>>

§

type Result = Option<Conf<T>>

source§

fn merge(self, other: Option<Conf<T>>) -> Option<Conf<T>>

source§

impl<T> ConfMergable<T, Conf<T>> for Option<Conf<T>>

Returns RHS if LHS is None

Option<Conf<T>> + Conf<T>Conf<T>

§

type Result = Conf<T>

source§

fn merge(self, other: Conf<T>) -> Conf<T>

Implementors§

source§

impl<T> ConfMergable<T, Option<Conf<T>>> for Conf<T>

Returns LHS if RHS is None

Conf<T> + Option<Conf<T>>Conf<T>

§

type Result = Conf<T>

source§

impl<T> ConfMergable<T, Conf<T>> for Conf<T>

Returns best value or LHS on tie

Conf<T> + Conf<T>Conf<T>

§

type Result = Conf<T>