pub struct EncodeOptions {
pub position: EncodePosition,
pub canonical: CanonicalPolicy,
pub lossless_origin: bool,
pub read_construct: ReadConstructEncodePolicy,
pub read_eval: ReadEvalEncodePolicy,
}Expand description
The full set of options controlling an encode pass.
Fields§
§position: EncodePositionThe target output position.
canonical: CanonicalPolicyThe canonicalization policy.
lossless_origin: boolWhether to preserve lossless source origin.
read_construct: ReadConstructEncodePolicyThe read-construct emission policy.
read_eval: ReadEvalEncodePolicyThe read-eval emission policy.
Trait Implementations§
Source§impl Clone for EncodeOptions
impl Clone for EncodeOptions
Source§fn clone(&self) -> EncodeOptions
fn clone(&self) -> EncodeOptions
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 EncodeOptions
impl Debug for EncodeOptions
Source§impl Default for EncodeOptions
impl Default for EncodeOptions
impl Eq for EncodeOptions
Source§impl PartialEq for EncodeOptions
impl PartialEq for EncodeOptions
Source§fn eq(&self, other: &EncodeOptions) -> bool
fn eq(&self, other: &EncodeOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EncodeOptions
Auto Trait Implementations§
impl Freeze for EncodeOptions
impl RefUnwindSafe for EncodeOptions
impl Send for EncodeOptions
impl Sync for EncodeOptions
impl Unpin for EncodeOptions
impl UnsafeUnpin for EncodeOptions
impl UnwindSafe for EncodeOptions
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