Struct ink_lang_ir::ChainExtension [−][src]
An ink! chain extension.
Implementations
impl ChainExtension
[src]
pub fn attrs(&self) -> Vec<Attribute>
[src]
Returns the Rust attributes of the ink! chain extension.
pub fn span(&self) -> Span
[src]
Returns the span of the ink! chain extension.
pub fn ident(&self) -> &Ident
[src]
Returns the identifier of the ink! chain extension.
pub fn iter_methods(&self) -> SliceIter<'_, ChainExtensionMethod>
[src]
Returns a slice over all the chain extension methods.
pub fn error_code(&self) -> &Type
[src]
Returns the type of the error code of the chain extension.
impl ChainExtension
[src]
pub fn new(attr: TokenStream2, input: TokenStream2) -> Result<Self>
[src]
Returns Ok
if the trait matches all requirements for an ink! chain extension.
Trait Implementations
impl Debug for ChainExtension
[src]
impl Eq for ChainExtension
[src]
impl PartialEq<ChainExtension> for ChainExtension
[src]
fn eq(&self, other: &ChainExtension) -> bool
[src]
fn ne(&self, other: &ChainExtension) -> bool
[src]
impl StructuralEq for ChainExtension
[src]
impl StructuralPartialEq for ChainExtension
[src]
impl TryFrom<ItemTrait> for ChainExtension
[src]
Auto Trait Implementations
impl RefUnwindSafe for ChainExtension
impl !Send for ChainExtension
impl !Sync for ChainExtension
impl Unpin for ChainExtension
impl UnwindSafe for ChainExtension
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,