pub struct PinBoxFutRet { /* private fields */ }Expand description
The return type information of a function.
Implementations§
Source§impl PinBoxFutRet
impl PinBoxFutRet
Sourcepub fn parse(ret_ty: &ReturnType) -> PinBoxFutRet
pub fn parse(ret_ty: &ReturnType) -> PinBoxFutRet
Parse a function return type in proc-macro.
Sourcepub fn is_ret_pin_box_fut(&self) -> bool
pub fn is_ret_pin_box_fut(&self) -> bool
Whether the function return a
Pin<Box<dyn Future<Output = RetTy>>>.
Sourcepub fn is_fut_ret_result(&self) -> bool
pub fn is_fut_ret_result(&self) -> bool
Sourcepub fn return_type(&self) -> TokenStream
pub fn return_type(&self) -> TokenStream
The token stream of the return type.
Trait Implementations§
Source§impl Clone for PinBoxFutRet
impl Clone for PinBoxFutRet
Source§fn clone(&self) -> PinBoxFutRet
fn clone(&self) -> PinBoxFutRet
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PinBoxFutRet
impl Debug for PinBoxFutRet
Auto Trait Implementations§
impl Freeze for PinBoxFutRet
impl RefUnwindSafe for PinBoxFutRet
impl !Send for PinBoxFutRet
impl !Sync for PinBoxFutRet
impl Unpin for PinBoxFutRet
impl UnwindSafe for PinBoxFutRet
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