Trait uzers::AllUsers

source ·
pub trait AllUsers {
    type UserIter<'a>: Iterator<Item = &'a User>
       where Self: 'a;

    // Required method
    fn get_all_users(&self) -> Self::UserIter<'_>;
}
Expand description

Trait for providers of user iterators.

Required Associated Types§

source

type UserIter<'a>: Iterator<Item = &'a User> where Self: 'a

User iterator returned by get_all_users.

Required Methods§

source

fn get_all_users(&self) -> Self::UserIter<'_>

Creates a new iterator over every user.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl AllUsers for UsersSnapshot

§

type UserIter<'a> = FilterMap<Values<'a, u32, Option<Arc<User>>>, for<'b> fn(_: &'b Option<Arc<User>>) -> Option<&'b User>>

source§

impl AllUsers for MockUsers

§

type UserIter<'a> = Map<Values<'a, u32, Arc<User>>, for<'b> fn(_: &'b Arc<User>) -> &'b User>