pub struct BytesArray(pub Vec<u8>);
Expand description
A wrapper type for array of bytes.
Implements Tokenizable
so can be used to retrieve data from Solidity
contracts returning byte8[]
.
Tuple Fields§
§0: Vec<u8>
Trait Implementations§
Source§impl Clone for BytesArray
impl Clone for BytesArray
Source§fn clone(&self) -> BytesArray
fn clone(&self) -> BytesArray
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BytesArray
impl Debug for BytesArray
Source§impl Default for BytesArray
impl Default for BytesArray
Source§fn default() -> BytesArray
fn default() -> BytesArray
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BytesArray
impl<'de> Deserialize<'de> for BytesArray
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for BytesArray
impl Hash for BytesArray
Source§impl PartialEq for BytesArray
impl PartialEq for BytesArray
Source§impl Serialize for BytesArray
impl Serialize for BytesArray
Source§impl Tokenizable for BytesArray
impl Tokenizable for BytesArray
Source§fn into_token(self) -> Token
fn into_token(self) -> Token
Converts a specified type back into token.
impl Eq for BytesArray
impl StructuralPartialEq for BytesArray
impl TokenizableItem for BytesArray
Auto Trait Implementations§
impl Freeze for BytesArray
impl RefUnwindSafe for BytesArray
impl Send for BytesArray
impl Sync for BytesArray
impl Unpin for BytesArray
impl UnwindSafe for BytesArray
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Detokenize for Twhere
T: Tokenizable,
impl<T> Detokenize for Twhere
T: Tokenizable,
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Tokenize for Twhere
T: Tokenizable,
impl<T> Tokenize for Twhere
T: Tokenizable,
Source§fn into_tokens(self) -> Vec<Token>
fn into_tokens(self) -> Vec<Token>
Convert to list of tokens