pub enum BorrowRec<'a, T> {
Ret(T),
Call(Thunk<'a, BorrowRec<'a, T>>),
}
Expand description
A single borrowed recursive-function result.
Variants§
Ret(T)
This variant is returned when the function is done; i.e. this the result of the computation.
Call(Thunk<'a, BorrowRec<'a, T>>)
This variant is returned when the function is about to call itself or another in a tail position (i.e. there is no job after the call), generally indicates recursion.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for BorrowRec<'a, T>where
T: Freeze,
impl<'a, T> !RefUnwindSafe for BorrowRec<'a, T>
impl<'a, T> !Send for BorrowRec<'a, T>
impl<'a, T> !Sync for BorrowRec<'a, T>
impl<'a, T> Unpin for BorrowRec<'a, T>where
T: Unpin,
impl<'a, T> !UnwindSafe for BorrowRec<'a, T>
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