#[non_exhaustive]pub enum MappingStyle {
Any = 0,
Block = 1,
Flow = 2,
}Expand description
Mapping styles.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Any = 0
Let the emitter choose the style.
Block = 1
The block mapping style.
Flow = 2
The flow mapping style.
Trait Implementations§
Source§impl Clone for MappingStyle
impl Clone for MappingStyle
Source§fn clone(&self) -> MappingStyle
fn clone(&self) -> MappingStyle
Returns a duplicate of the value. Read more
1.0.0 · 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 MappingStyle
impl Debug for MappingStyle
Source§impl Hash for MappingStyle
impl Hash for MappingStyle
Source§impl Ord for MappingStyle
impl Ord for MappingStyle
Source§fn cmp(&self, other: &MappingStyle) -> Ordering
fn cmp(&self, other: &MappingStyle) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MappingStyle
impl PartialEq for MappingStyle
Source§impl PartialOrd for MappingStyle
impl PartialOrd for MappingStyle
impl Copy for MappingStyle
impl Eq for MappingStyle
impl StructuralPartialEq for MappingStyle
Auto Trait Implementations§
impl Freeze for MappingStyle
impl RefUnwindSafe for MappingStyle
impl Send for MappingStyle
impl Sync for MappingStyle
impl Unpin for MappingStyle
impl UnwindSafe for MappingStyle
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