pub(crate) struct Slots {
tries: Vec<Ident>,
ret: Option<Ident>,
ctl: Option<Ident>,
ctl_targets: Vec<TokenStream>,
}Expand description
The exit slots of one node, declared as let mut slot = None; before its chain runs.
Fields§
§tries: Vec<Ident>One per ?: holds the residual (Err or None) if that ? failed.
ret: Option<Ident>Holds the value of a return.
ctl: Option<Ident>Holds which break/continue was taken, as an index into ctl_targets.
ctl_targets: Vec<TokenStream>The statements that re-perform each recorded break/continue.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Slots
impl RefUnwindSafe for Slots
impl !Send for Slots
impl !Sync for Slots
impl Unpin for Slots
impl UnsafeUnpin for Slots
impl UnwindSafe for Slots
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