pub enum Literal<J: Json> {
Null,
Boolean(bool),
Number(J::Number),
String(LiteralString<J>),
}
Expand description
Literal value.
Variants
Null
The null
value.
Boolean(bool)
Tuple Fields
0: bool
Boolean value.
Number(J::Number)
Tuple Fields
0: J::Number
Number.
String(LiteralString<J>)
Tuple Fields
0: LiteralString<J>
String.
Implementations
Trait Implementations
Auto Trait Implementations
impl<J> RefUnwindSafe for Literal<J> where
<J as Json>::Number: RefUnwindSafe,
<J as Json>::String: RefUnwindSafe,
impl<J> UnwindSafe for Literal<J> where
<J as Json>::Number: UnwindSafe,
<J as Json>::String: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more