Enum lib_ruby_parser::source::DecoderResult
source · [−]#[repr(C)]
pub enum DecoderResult {
Ok(Vec<u8>),
Err(InputError),
}
Expand description
Result that is returned from decoding function
Variants
Ok(Vec<u8>)
Ok + decoded bytes
Err(InputError)
Err + reason
Trait Implementations
sourceimpl Clone for DecoderResult
impl Clone for DecoderResult
sourcefn clone(&self) -> DecoderResult
fn clone(&self) -> DecoderResult
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DecoderResult
impl Debug for DecoderResult
sourceimpl PartialEq<DecoderResult> for DecoderResult
impl PartialEq<DecoderResult> for DecoderResult
sourcefn eq(&self, other: &DecoderResult) -> bool
fn eq(&self, other: &DecoderResult) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DecoderResult) -> bool
fn ne(&self, other: &DecoderResult) -> bool
This method tests for !=
.
impl Eq for DecoderResult
impl StructuralEq for DecoderResult
impl StructuralPartialEq for DecoderResult
Auto Trait Implementations
impl RefUnwindSafe for DecoderResult
impl Send for DecoderResult
impl Sync for DecoderResult
impl Unpin for DecoderResult
impl UnwindSafe for DecoderResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more