[][src]Struct bidiff::Translator

pub struct Translator<'a, F, E> where
    F: FnMut(&Control) -> Result<(), E>,
    E: Error
{ /* fields omitted */ }

Methods

impl<'a, F, E> Translator<'a, F, E> where
    F: FnMut(&Control) -> Result<(), E>,
    E: Error
[src]

pub fn new(obuf: &'a [u8], nbuf: &'a [u8], on_control: F) -> Self[src]

pub fn translate(&mut self, m: Match) -> Result<(), E>[src]

pub fn close(self) -> Result<(), E>[src]

Trait Implementations

impl<'a, F, E> Drop for Translator<'a, F, E> where
    F: FnMut(&Control) -> Result<(), E>,
    E: Error
[src]

Auto Trait Implementations

impl<'a, F, E> Send for Translator<'a, F, E> where
    F: Send

impl<'a, F, E> Sync for Translator<'a, F, E> where
    F: Sync

impl<'a, F, E> Unpin for Translator<'a, F, E> where
    F: Unpin

impl<'a, F, E> UnwindSafe for Translator<'a, F, E> where
    F: UnwindSafe

impl<'a, F, E> RefUnwindSafe for Translator<'a, F, E> where
    F: RefUnwindSafe

Blanket Implementations

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

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

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

type Error = !

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.

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

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

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