Struct IterReceiver

Source
pub struct IterReceiver<E: Entry, I>
where for<'a> &'a mut I: IntoIterator, for<'a> <&'a mut I as IntoIterator>::Item: Receiver<E>,
{ pub iter: I, /* private fields */ }
Expand description

A receiver which creates an iterator from a reference to the contained value and notifies all items which the iterator produces.

Fields§

§iter: I

The iterable which produces iterators over the receivers.

Implementations§

Source§

impl<E: Entry, I> IterReceiver<E, I>
where for<'a> &'a mut I: IntoIterator, for<'a> <&'a mut I as IntoIterator>::Item: Receiver<E>,

Source

pub fn new(iter: I) -> Self

Creates a new receiver which notifies the specified iterable of receivers.

Trait Implementations§

Source§

impl<E: Entry, I: Clone> Clone for IterReceiver<E, I>
where for<'a> &'a mut I: IntoIterator, for<'a> <&'a mut I as IntoIterator>::Item: Receiver<E>,

Source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<E: Entry, I: Debug> Debug for IterReceiver<E, I>
where for<'a> &'a mut I: IntoIterator, for<'a> <&'a mut I as IntoIterator>::Item: Receiver<E>,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<E: Entry, I: Default> Default for IterReceiver<E, I>
where for<'a> &'a mut I: IntoIterator, for<'a> <&'a mut I as IntoIterator>::Item: Receiver<E>,

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<E: Entry, I> Receiver<E> for &IterReceiver<E, I>
where for<'a> &'a mut I: IntoIterator, for<'a> &'a I: IntoIterator, for<'a> <&'a mut I as IntoIterator>::Item: Receiver<E>, for<'a> <&'a I as IntoIterator>::Item: Receiver<E>,

Source§

fn receive(&mut self, new_value: &E::Data)

Receive a notification about the value of the entry changing to the specified new value. Read more
Source§

impl<E: Entry, I> Receiver<E> for IterReceiver<E, I>
where for<'a> &'a mut I: IntoIterator, for<'a> <&'a mut I as IntoIterator>::Item: Receiver<E>,

Source§

fn receive(&mut self, new_value: &E::Data)

Receive a notification about the value of the entry changing to the specified new value. Read more
Source§

impl<E: Entry, I: Copy> Copy for IterReceiver<E, I>
where for<'a> &'a mut I: IntoIterator, for<'a> <&'a mut I as IntoIterator>::Item: Receiver<E>,

Auto Trait Implementations§

§

impl<E, I> Freeze for IterReceiver<E, I>
where I: Freeze,

§

impl<E, I> RefUnwindSafe for IterReceiver<E, I>

§

impl<E, I> Send for IterReceiver<E, I>
where I: Send, E: Send,

§

impl<E, I> Sync for IterReceiver<E, I>
where I: Sync, E: Sync,

§

impl<E, I> Unpin for IterReceiver<E, I>
where I: Unpin, E: Unpin,

§

impl<E, I> UnwindSafe for IterReceiver<E, I>
where I: UnwindSafe, E: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> GetExt for T
where T: ?Sized,

Source§

fn get_ref_to<E: Entry>(&self) -> &E::Data
where Self: Get<E>,

Returns an unguarded immutable reference to the field.
Source§

fn get_handle_to<E: Entry>( &mut self, ) -> Handle<'_, E, <Self as Get<E>>::Receiver>
where Self: Get<E>,

Returns a Handle to the field.
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.