pub enum DecodedForm {
Datum(Datum),
Term(Term),
}Expand description
The position-resolved result of a default decode: inert data or an evaluable term.
Returned by decode_default_with_codec; the codec’s
CodecDefaultDecode policy and the requested DecodePosition together
select which variant is produced.
Variants§
Trait Implementations§
Source§impl Clone for DecodedForm
impl Clone for DecodedForm
Source§fn clone(&self) -> DecodedForm
fn clone(&self) -> DecodedForm
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DecodedForm
impl Debug for DecodedForm
impl Eq for DecodedForm
Source§impl PartialEq for DecodedForm
impl PartialEq for DecodedForm
Source§fn eq(&self, other: &DecodedForm) -> bool
fn eq(&self, other: &DecodedForm) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DecodedForm
Auto Trait Implementations§
impl Freeze for DecodedForm
impl RefUnwindSafe for DecodedForm
impl Send for DecodedForm
impl Sync for DecodedForm
impl Unpin for DecodedForm
impl UnsafeUnpin for DecodedForm
impl UnwindSafe for DecodedForm
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more