Function check_member_in_set

Source
pub fn check_member_in_set<S>(
    member: &S::Item,
    set: &S,
    member_name: &str,
    set_name: &str,
) -> Result<()>
where S: SetLike,
Expand description

Checks the member is in the set.

§Errors

Returns an error if the validation check fails.