Struct lib_ruby_parser::source::RustFnBasedCustomDecoder [−][src]
Default decoder implementation that is based on your Rust function or Rust closure.
Bindings to other languages implement their own structures,
this is why this struct has a prefix Rust
.
Implementations
impl RustFnBasedCustomDecoder
[src]
pub fn new(f: Box<dyn Fn(&str, &[u8]) -> Result<Vec<u8>, InputError>>) -> Self
[src]
Constructs a new decoder based on a function of closure.
Trait Implementations
impl CustomDecoder for RustFnBasedCustomDecoder
[src]
impl Debug for RustFnBasedCustomDecoder
[src]
Auto Trait Implementations
impl !RefUnwindSafe for RustFnBasedCustomDecoder
impl !Send for RustFnBasedCustomDecoder
impl !Sync for RustFnBasedCustomDecoder
impl Unpin for RustFnBasedCustomDecoder
impl !UnwindSafe for RustFnBasedCustomDecoder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,