Trait Member

Source
pub trait Member<TargetL> {
    type Output: Bool;
}
Expand description

Check to see if a target label is a list member.

Required Associated Types§

Source

type Output: Bool

True if TargetL is a member, False otherwise.

Implementors§

Source§

impl<TargetL> Member<TargetL> for Nil

Source§

impl<TargetL, L, T> Member<TargetL> for Cons<L, T>
where L: Label + LabelEq<TargetL>, Self: MemberMatch<TargetL, <L as LabelEq<TargetL>>::Output>,

Source§

type Output = <Cons<L, T> as MemberMatch<TargetL, <L as LabelEq<TargetL>>::Output>>::Output