pub enum Scope {
Root,
List,
Map,
Option,
Result,
Variant,
}Expand description
Internal state tracking for the Encoder stack.
Variants§
Root
The virtual root; allows any item.
List
Ordered sequence; allows any number of items.
Map
Key-Value container; strictly allows only Tag::Variant items.
Option
Strict container; allows exactly one item.
Result
Strict container; allows exactly one item.
Variant
Strict container; allows exactly one item (the payload) after the name.
Trait Implementations§
impl Copy for Scope
impl Eq for Scope
impl StructuralPartialEq for Scope
Auto Trait Implementations§
impl Freeze for Scope
impl RefUnwindSafe for Scope
impl Send for Scope
impl Sync for Scope
impl Unpin for Scope
impl UnsafeUnpin for Scope
impl UnwindSafe for Scope
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