Struct TupleDepth
pub struct TupleDepth(/* private fields */);
Expand description
Tracks the depth of a Tuple decoding chain
Implementations§
§impl TupleDepth
impl TupleDepth
pub fn increment(self) -> TupleDepth
pub fn increment(self) -> TupleDepth
Increment the depth by one, this be called when calling into Tuple::{encode, decode}
of tuple-like datastructures
Trait Implementations§
§impl Clone for TupleDepth
impl Clone for TupleDepth
§fn clone(&self) -> TupleDepth
fn clone(&self) -> TupleDepth
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for TupleDepth
Auto Trait Implementations§
impl Freeze for TupleDepth
impl RefUnwindSafe for TupleDepth
impl Send for TupleDepth
impl Sync for TupleDepth
impl Unpin for TupleDepth
impl UnwindSafe for TupleDepth
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