pub enum EncodePosition {
Eval,
Quote,
Data,
Pattern,
}Expand description
The output position an encoder is targeting.
Encoders render differently depending on where the form will land; the kernel defines the positions, concrete codecs honor them.
Variants§
Eval
Output will be evaluated.
Quote
Output sits inside a quotation.
Data
Output is plain data.
Pattern
Output is a pattern.
Trait Implementations§
Source§impl Clone for EncodePosition
impl Clone for EncodePosition
Source§fn clone(&self) -> EncodePosition
fn clone(&self) -> EncodePosition
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 moreimpl Copy for EncodePosition
Source§impl Debug for EncodePosition
impl Debug for EncodePosition
impl Eq for EncodePosition
Source§impl PartialEq for EncodePosition
impl PartialEq for EncodePosition
Source§fn eq(&self, other: &EncodePosition) -> bool
fn eq(&self, other: &EncodePosition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EncodePosition
Auto Trait Implementations§
impl Freeze for EncodePosition
impl RefUnwindSafe for EncodePosition
impl Send for EncodePosition
impl Sync for EncodePosition
impl Unpin for EncodePosition
impl UnsafeUnpin for EncodePosition
impl UnwindSafe for EncodePosition
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