pub struct EventLinkCore<T, D> {
pub event: Option<EventCore<T, D>>,
pub next: RefCell<Option<Rc<EventLinkCore<T, D>>>>,
}
Expand description
A linked list of EventCore<T, D>.
Fields§
§event: Option<EventCore<T, D>>
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<EventLinkCore<T, D>>>>
The next event, if it exists.
Implementations§
source§impl<T, D> EventLinkCore<T, D>
impl<T, D> EventLinkCore<T, D>
sourcepub fn new() -> EventLinkCore<T, D>
pub fn new() -> EventLinkCore<T, D>
Allocates a new EventLink
.
Trait Implementations§
source§impl<T, D> Default for EventLinkCore<T, D>
impl<T, D> Default for EventLinkCore<T, D>
Auto Trait Implementations§
impl<T, D> !RefUnwindSafe for EventLinkCore<T, D>
impl<T, D> !Send for EventLinkCore<T, D>
impl<T, D> !Sync for EventLinkCore<T, D>
impl<T, D> Unpin for EventLinkCore<T, D>
impl<T, D> !UnwindSafe for EventLinkCore<T, D>
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