pub struct FnQualifiers {
pub tk_default: Option<Ident>,
pub tk_const: Option<Ident>,
pub tk_async: Option<Ident>,
pub tk_unsafe: Option<Ident>,
pub tk_extern: Option<Ident>,
pub extern_abi: Option<Literal>,
}Expand description
Keywords giving special information on a function.
Possible qualifiers are default, const, async, unsafe and extern,
always in that order.
Fields§
§tk_default: Option<Ident>§tk_const: Option<Ident>§tk_async: Option<Ident>§tk_unsafe: Option<Ident>§tk_extern: Option<Ident>§extern_abi: Option<Literal>Trait Implementations§
Source§impl Clone for FnQualifiers
impl Clone for FnQualifiers
Source§fn clone(&self) -> FnQualifiers
fn clone(&self) -> FnQualifiers
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FnQualifiers
impl Debug for FnQualifiers
Source§impl Default for FnQualifiers
impl Default for FnQualifiers
Source§fn default() -> FnQualifiers
fn default() -> FnQualifiers
Returns the “default value” for a type. Read more
Source§impl ToTokens for FnQualifiers
impl ToTokens for FnQualifiers
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 !Send for FnQualifiers
impl !Sync for FnQualifiers
impl Freeze for FnQualifiers
impl RefUnwindSafe for FnQualifiers
impl Unpin for FnQualifiers
impl UnsafeUnpin for FnQualifiers
impl UnwindSafe for FnQualifiers
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