Struct tars_stream::tars_decoder::TarsDecoder [−][src]
pub struct TarsDecoder { /* fields omitted */ }Methods
impl TarsDecoder[src]
impl TarsDecoderpub fn new(buf: &[u8]) -> TarsDecoder[src]
pub fn new(buf: &[u8]) -> TarsDecoderpub fn has_remaining(&self) -> bool[src]
pub fn has_remaining(&self) -> boolpub fn read<T>(&mut self, tars_type: u8) -> Result<T, DecodeErr> where
T: DecodeFromTars, [src]
pub fn read<T>(&mut self, tars_type: u8) -> Result<T, DecodeErr> where
T: DecodeFromTars, pub fn take_head(&mut self) -> Result<Head, DecodeErr>[src]
pub fn take_head(&mut self) -> Result<Head, DecodeErr>Trait Implementations
impl Debug for TarsDecoder[src]
impl Debug for TarsDecoderfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for TarsDecoder[src]
impl Clone for TarsDecoderfn clone(&self) -> TarsDecoder[src]
fn clone(&self) -> TarsDecoderReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl PartialEq for TarsDecoder[src]
impl PartialEq for TarsDecoderfn eq(&self, other: &TarsDecoder) -> bool[src]
fn eq(&self, other: &TarsDecoder) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &TarsDecoder) -> bool[src]
fn ne(&self, other: &TarsDecoder) -> boolThis method tests for !=.
impl Eq for TarsDecoder[src]
impl Eq for TarsDecoderimpl PartialOrd for TarsDecoder[src]
impl PartialOrd for TarsDecoderfn partial_cmp(&self, other: &TarsDecoder) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &TarsDecoder) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &TarsDecoder) -> bool[src]
fn lt(&self, other: &TarsDecoder) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &TarsDecoder) -> bool[src]
fn le(&self, other: &TarsDecoder) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &TarsDecoder) -> bool[src]
fn gt(&self, other: &TarsDecoder) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &TarsDecoder) -> bool[src]
fn ge(&self, other: &TarsDecoder) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for TarsDecoder[src]
impl Ord for TarsDecoderfn cmp(&self, other: &TarsDecoder) -> Ordering[src]
fn cmp(&self, other: &TarsDecoder) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl<T> TarsDecoderTrait<T> for TarsDecoder where
T: DecodeFromTars, [src]
impl<T> TarsDecoderTrait<T> for TarsDecoder where
T: DecodeFromTars, impl<T> TarsDecoderTrait<Option<T>> for TarsDecoder where
T: DecodeFromTars, [src]
impl<T> TarsDecoderTrait<Option<T>> for TarsDecoder where
T: DecodeFromTars, Auto Trait Implementations
impl Send for TarsDecoder
impl Send for TarsDecoderimpl Sync for TarsDecoder
impl Sync for TarsDecoder