Struct macro_wasmer_universal_test::MaybeItemFn
source · pub(crate) struct MaybeItemFn {
pub(crate) outer_attrs: Vec<Attribute>,
pub(crate) inner_attrs: Vec<Attribute>,
pub(crate) vis: Visibility,
pub(crate) sig: Signature,
pub(crate) block: TokenStream,
}
Fields§
§outer_attrs: Vec<Attribute>
§inner_attrs: Vec<Attribute>
§vis: Visibility
§sig: Signature
§block: TokenStream
Trait Implementations§
source§impl Clone for MaybeItemFn
impl Clone for MaybeItemFn
source§fn clone(&self) -> MaybeItemFn
fn clone(&self) -> MaybeItemFn
Returns a copy 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 MaybeItemFn
impl Debug for MaybeItemFn
source§impl Parse for MaybeItemFn
impl Parse for MaybeItemFn
This parses a TokenStream
into a MaybeItemFn
(just like ItemFn
, but skips parsing the body).
fn parse(input: ParseStream<'_>) -> Result<Self>
Auto Trait Implementations§
impl Freeze for MaybeItemFn
impl RefUnwindSafe for MaybeItemFn
impl !Send for MaybeItemFn
impl !Sync for MaybeItemFn
impl Unpin for MaybeItemFn
impl UnwindSafe for MaybeItemFn
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)