[][src]Struct concordium_std::Cursor

pub struct Cursor<T> {
    pub offset: usize,
    pub data: T,
}

Add offset tracking inside a data structure.

Fields

offset: usizedata: T

Implementations

impl<T> Cursor<T>[src]

pub fn new(data: T) -> Cursor<T>[src]

Trait Implementations

impl<'a> HasParameter for Cursor<&'a [u8]>[src]

impl<T> Read for Cursor<T> where
    T: AsRef<[u8]>, 
[src]

impl<'_> Write for Cursor<&'_ mut Vec<u8, Global>>[src]

type Err = ()

Auto Trait Implementations

impl<T> RefUnwindSafe for Cursor<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for Cursor<T> where
    T: Send
[src]

impl<T> Sync for Cursor<T> where
    T: Sync
[src]

impl<T> Unpin for Cursor<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for Cursor<T> where
    T: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<R, T> Get<T> for R where
    T: Deserial,
    R: Read
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.