pub enum FrameMode {
Root,
Normal,
ListElement,
MapKey,
MapValue {
index: usize,
},
OptionSome,
OptionNone,
}Expand description
Represents the special mode a frame can be in
Variants§
Root
Root frame
Normal
Normal frame
ListElement
Frame represents a list element
MapKey
Frame represents a map key
MapValue
Frame represents a map value with the given key frame index
OptionSome
Frame represents the Some variant of an option (that we allocated)
OptionNone
Frame represents the None variant of an option (no allocation needed)
Any put should fail
Trait Implementations§
impl Copy for FrameMode
impl Eq for FrameMode
impl StructuralPartialEq for FrameMode
Auto Trait Implementations§
impl Freeze for FrameMode
impl RefUnwindSafe for FrameMode
impl Send for FrameMode
impl Sync for FrameMode
impl Unpin for FrameMode
impl UnwindSafe for FrameMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Stylize for T
impl<T> Stylize for T
Source§fn bright_red(self) -> Styled<T>
fn bright_red(self) -> Styled<T>
Apply bright red color style to a value.
Source§fn bright_green(self) -> Styled<T>
fn bright_green(self) -> Styled<T>
Apply bright green color style to a value.
Source§fn bright_blue(self) -> Styled<T>
fn bright_blue(self) -> Styled<T>
Apply bright blue color style to a value.
Source§fn bright_yellow(self) -> Styled<T>
fn bright_yellow(self) -> Styled<T>
Apply bright yellow color style to a value.
Source§fn bright_magenta(self) -> Styled<T>
fn bright_magenta(self) -> Styled<T>
Apply bright magenta color style to a value.
Source§fn bright_cyan(self) -> Styled<T>
fn bright_cyan(self) -> Styled<T>
Apply bright cyan color style to a value.
Source§fn bright_white(self) -> Styled<T>
fn bright_white(self) -> Styled<T>
Apply bright white color style to a value.