Method lrs::user::Information::find_by

Finds the first user that satisfies the predicate.

Syntax

impl<H> Information<H>
    where H: Allocator,
          <H as Allocator>::Pool: Default,
          <H as Allocator>::Pool: Copy,
{
    fn find_by<F>(pred: F) -> Result<Information<H>, Errno>
        where F: Fn(&Info) -> bool,
}

Arguments

NameDescription
pred

The predicate.