Struct ink_lang_ir::InkTest
source · [−]pub struct InkTest {
pub item_fn: ItemFn,
}
Expand description
The ink! test with all required information.
Fields
item_fn: ItemFn
The function which was annotated.
Implementations
sourceimpl InkTest
impl InkTest
sourcepub fn new(attr: TokenStream2, input: TokenStream2) -> Result<Self, Error>
pub fn new(attr: TokenStream2, input: TokenStream2) -> Result<Self, Error>
Returns Ok
if the trait matches all requirements for an ink! trait definition.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for InkTest
impl !Send for InkTest
impl !Sync for InkTest
impl Unpin for InkTest
impl UnwindSafe for InkTest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more