pub struct Returns {
pub returns_token: returns,
pub paren_token: Paren,
pub returns: ParameterList,
}
Expand description
The returns
attribute of a function.
Fields§
§returns_token: returns
§paren_token: Paren
§returns: ParameterList
The returns of the function. This cannot be parsed empty.
Implementations§
Trait Implementations§
Source§impl Spanned for Returns
impl Spanned for Returns
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span
covering the complete contents of this syntax tree
node, or Span::call_site()
if this node is empty.impl Eq for Returns
Auto Trait Implementations§
impl Freeze for Returns
impl RefUnwindSafe for Returns
impl !Send for Returns
impl !Sync for Returns
impl Unpin for Returns
impl UnwindSafe for Returns
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)