[][src]Struct dbin::Context

pub struct Context<'a> { /* fields omitted */ }

Implementations

impl<'a> Context<'a>[src]

pub fn new(bytes: &'a [u8]) -> Context<'a>[src]

pub fn peek(&self, n: usize) -> Result<&'a [u8], String>[src]

pub fn read(&mut self, n: usize) -> Result<&'a [u8], String>[src]

pub fn push_stack(&mut self, map: HashMap<Key, Key>)[src]

pub fn pop_stack(&mut self)[src]

pub fn getvar<K: Into<Key>>(&self, k: K) -> Option<&Key>[src]

pub fn store(&self) -> usize[src]

pub fn restore(&mut self, pos: usize)[src]

pub fn setvar<K: Into<Key>, V: Into<Key>>(&mut self, k: K, v: V)[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Context<'a>

impl<'a> !Send for Context<'a>

impl<'a> !Sync for Context<'a>

impl<'a> Unpin for Context<'a>

impl<'a> UnwindSafe for Context<'a>

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<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.