pub enum CollectionStyle {
Block,
Flow,
}Expand description
The style (block or flow) of a collection (sequence or mapping).
Currently only Block is produced; Flow will be used when flow sequences
([a, b]) and flow mappings ({a: b}) are implemented in Task 14.
Variants§
Block
A block-style collection using indentation and -/: indicators.
Flow
A flow-style collection using [] or {} delimiters (Task 14).
Trait Implementations§
Source§impl Clone for CollectionStyle
impl Clone for CollectionStyle
Source§fn clone(&self) -> CollectionStyle
fn clone(&self) -> CollectionStyle
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 CollectionStyle
impl Debug for CollectionStyle
Source§impl PartialEq for CollectionStyle
impl PartialEq for CollectionStyle
impl Copy for CollectionStyle
impl Eq for CollectionStyle
impl StructuralPartialEq for CollectionStyle
Auto Trait Implementations§
impl Freeze for CollectionStyle
impl RefUnwindSafe for CollectionStyle
impl Send for CollectionStyle
impl Sync for CollectionStyle
impl Unpin for CollectionStyle
impl UnsafeUnpin for CollectionStyle
impl UnwindSafe for CollectionStyle
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