Struct ethcore_ipc::binary::BinVersion
[−]
[src]
pub struct BinVersion { pub major: u64, pub minor: u64, pub patch: u64, }
Shorten version of semver Version without pre
and build
information
Fields
major: u64
minor: u64
patch: u64
Methods
impl BinVersion
[src]
fn to_semver(self) -> Version
Trait Implementations
impl Clone for BinVersion
[src]
fn clone(&self) -> BinVersion
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 Copy for BinVersion
[src]
impl Debug for BinVersion
[src]
impl PartialEq for BinVersion
[src]
fn eq(&self, __arg_0: &BinVersion) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &BinVersion) -> bool
This method tests for !=
.
impl Eq for BinVersion
[src]
impl From<Version> for BinVersion
[src]
fn from(other: Version) -> Self
Performs the conversion.
impl BinaryConvertable for BinVersion where BinVersion: Copy
[src]
fn from_bytes(bytes: &[u8],
_length_stack: &mut VecDeque<usize>)
-> Result<Self, BinaryConvertError>
_length_stack: &mut VecDeque<usize>)
-> Result<Self, BinaryConvertError>
fn to_bytes(&self,
buffer: &mut [u8],
_length_stack: &mut VecDeque<usize>)
-> Result<(), BinaryConvertError>
buffer: &mut [u8],
_length_stack: &mut VecDeque<usize>)
-> Result<(), BinaryConvertError>