Struct ink_env::call::utils::ArgumentList [−][src]
An argument list.
This type is constructed mainly at compile type via type constructions to avoid having to allocate heap memory while constructing the encoded arguments. The potentially heap allocating encoding is done right at the end where we can leverage the static environmental buffer instead of allocating heap memory.
Implementations
impl ArgumentList<ArgumentListEnd, ArgumentListEnd>
[src]
pub fn empty() -> EmptyArgumentList
[src]
Creates a new empty argument list.
pub fn push_arg<T>(self, arg: T) -> ArgumentList<Argument<T>, Self> where
T: Encode,
[src]
T: Encode,
Pushes the first argument to the empty argument list.
impl<Head, Rest> ArgumentList<Argument<Head>, Rest>
[src]
pub fn push_arg<T>(self, arg: T) -> ArgumentList<Argument<T>, Self> where
T: Encode,
[src]
T: Encode,
Pushes another argument to the argument list.
Trait Implementations
impl<Head: Debug, Rest: Debug> Debug for ArgumentList<Head, Rest>
[src]
impl<'a, Head, Rest> Encode for ArgumentList<Argument<Head>, Rest> where
Head: Encode,
Rest: Encode,
[src]
Head: Encode,
Rest: Encode,
Auto Trait Implementations
impl<Head, Rest> RefUnwindSafe for ArgumentList<Head, Rest> where
Head: RefUnwindSafe,
Rest: RefUnwindSafe,
Head: RefUnwindSafe,
Rest: RefUnwindSafe,
impl<Head, Rest> Send for ArgumentList<Head, Rest> where
Head: Send,
Rest: Send,
Head: Send,
Rest: Send,
impl<Head, Rest> Sync for ArgumentList<Head, Rest> where
Head: Sync,
Rest: Sync,
Head: Sync,
Rest: Sync,
impl<Head, Rest> Unpin for ArgumentList<Head, Rest> where
Head: Unpin,
Rest: Unpin,
Head: Unpin,
Rest: Unpin,
impl<Head, Rest> UnwindSafe for ArgumentList<Head, Rest> where
Head: UnwindSafe,
Rest: UnwindSafe,
Head: UnwindSafe,
Rest: UnwindSafe,
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> EncodeLike<&'_ &'_ T> for T where
T: Encode,
[src]
T: Encode,
impl<'_, T> EncodeLike<&'_ T> for T where
T: Encode,
[src]
T: Encode,
impl<'_, T> EncodeLike<&'_ mut T> for T where
T: Encode,
[src]
T: Encode,
impl<T> EncodeLike<Arc<T>> for T where
T: Encode,
[src]
T: Encode,
impl<T> EncodeLike<Box<T, Global>> for T where
T: Encode,
[src]
T: Encode,
impl<T> EncodeLike<Rc<T>> for T where
T: Encode,
[src]
T: Encode,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,