Struct ethcontract::contract::Signature
source · pub struct Signature<P, R>(pub H32, pub PhantomData<(P, R)>);Expand description
Method signature with additional info about method’s input and output types.
Additional type parameters are used to help with type inference
for instance’s method and view_method functions.
Tuple Fields§
§0: H32§1: PhantomData<(P, R)>Implementations§
Trait Implementations§
source§impl<P: PartialEq, R: PartialEq> PartialEq for Signature<P, R>
impl<P: PartialEq, R: PartialEq> PartialEq for Signature<P, R>
impl<P: Copy, R: Copy> Copy for Signature<P, R>
impl<P: Eq, R: Eq> Eq for Signature<P, R>
impl<P, R> StructuralPartialEq for Signature<P, R>
Auto Trait Implementations§
impl<P, R> Freeze for Signature<P, R>
impl<P, R> RefUnwindSafe for Signature<P, R>where
P: RefUnwindSafe,
R: RefUnwindSafe,
impl<P, R> Send for Signature<P, R>
impl<P, R> Sync for Signature<P, R>
impl<P, R> Unpin for Signature<P, R>
impl<P, R> UnwindSafe for Signature<P, R>where
P: UnwindSafe,
R: UnwindSafe,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.