pub struct InkTraitDefinition { /* private fields */ }Expand description
A checked ink! trait definition without its configuration.
Implementations§
Source§impl InkTraitDefinition
impl InkTraitDefinition
Sourcepub fn new(config: TokenStream2, input: TokenStream2) -> Result<Self>
pub fn new(config: TokenStream2, input: TokenStream2) -> Result<Self>
Returns Ok if the input matches all requirements for an ink! trait definition.
Source§impl InkTraitDefinition
impl InkTraitDefinition
Sourcepub fn item(&self) -> &InkItemTrait
pub fn item(&self) -> &InkItemTrait
Returns the ink! trait item representing the ink! trait definition.
Trait Implementations§
Source§impl Debug for InkTraitDefinition
impl Debug for InkTraitDefinition
Source§impl PartialEq for InkTraitDefinition
impl PartialEq for InkTraitDefinition
impl Eq for InkTraitDefinition
impl StructuralPartialEq for InkTraitDefinition
Auto Trait Implementations§
impl Freeze for InkTraitDefinition
impl RefUnwindSafe for InkTraitDefinition
impl !Send for InkTraitDefinition
impl !Sync for InkTraitDefinition
impl Unpin for InkTraitDefinition
impl UnwindSafe for InkTraitDefinition
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more