Struct ethcore_rpc::v1::types::Bytes
[−]
[src]
pub struct Bytes(pub Vec<u8>);
Wrapper structure around vector of bytes.
Methods
impl Bytes
[src]
fn new(bytes: Vec<u8>) -> Bytes
Simple constructor.
fn into_vec(self) -> Vec<u8>
Convert back to vector
Trait Implementations
impl Clone for Bytes
[src]
fn clone(&self) -> Bytes
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Hash for Bytes
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl Default for Bytes
[src]
impl Eq for Bytes
[src]
impl PartialEq for Bytes
[src]
fn eq(&self, __arg_0: &Bytes) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Bytes) -> bool
This method tests for !=
.
impl Debug for Bytes
[src]
impl From<Vec<u8>> for Bytes
[src]
impl Into<Vec<u8>> for Bytes
[src]
impl Serialize for Bytes
[src]
fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where S: Serializer
Serializes this value into this serializer.
impl Deserialize for Bytes
[src]
fn deserialize<D>(deserializer: &mut D) -> Result<Bytes, D::Error> where D: Deserializer
Deserialize this value given this Deserializer
.