pub struct EventLink<T, C> {
pub event: Option<Event<T, C>>,
pub next: RefCell<Option<Rc<EventLink<T, C>>>>,
}
Expand description
A linked list of Event<T, C>.
Fields§
§event: Option<Event<T, C>>
An event, if one exists.
An event might not exist, if either we want to insert a None
and have the output iterator pause,
or in the case of the very first linked list element, which has no event when constructed.
next: RefCell<Option<Rc<EventLink<T, C>>>>
The next event, if it exists.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T, C> !Freeze for EventLink<T, C>
impl<T, C> !RefUnwindSafe for EventLink<T, C>
impl<T, C> !Send for EventLink<T, C>
impl<T, C> !Sync for EventLink<T, C>
impl<T, C> Unpin for EventLink<T, C>
impl<T, C> !UnwindSafe for EventLink<T, C>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more