pub struct FnTypedParam {
pub attributes: Vec<Attribute>,
pub tk_mut: Option<Ident>,
pub name: Ident,
pub tk_colon: Punct,
pub ty: TypeExpr,
}
Expand description
Function
parameter with explicit type.
In the following code, the function parameters captured are a: i32
and mut b: f32
pub fn hello_world(a: i32, mut b: f32) {}
Fields§
§attributes: Vec<Attribute>
§tk_mut: Option<Ident>
§name: Ident
§tk_colon: Punct
§ty: TypeExpr
Trait Implementations§
Source§impl Clone for FnTypedParam
impl Clone for FnTypedParam
Source§fn clone(&self) -> FnTypedParam
fn clone(&self) -> FnTypedParam
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 FnTypedParam
impl Debug for FnTypedParam
Source§impl ToTokens for FnTypedParam
impl ToTokens for FnTypedParam
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Auto Trait Implementations§
impl Freeze for FnTypedParam
impl RefUnwindSafe for FnTypedParam
impl !Send for FnTypedParam
impl !Sync for FnTypedParam
impl Unpin for FnTypedParam
impl UnwindSafe for FnTypedParam
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