pub struct JsonBoolean {
pub value: bool,
pub span: Range<usize>,
}Expand description
Represents a JSON boolean literal.
Fields§
§value: boolThe boolean value.
span: Range<usize>The source range of the boolean literal.
Trait Implementations§
Source§impl AsDocument for JsonBoolean
impl AsDocument for JsonBoolean
Source§impl Clone for JsonBoolean
impl Clone for JsonBoolean
Source§fn clone(&self) -> JsonBoolean
fn clone(&self) -> JsonBoolean
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 JsonBoolean
impl Debug for JsonBoolean
Source§impl<'de> Deserialize<'de> for JsonBoolean
impl<'de> Deserialize<'de> for JsonBoolean
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for JsonBoolean
impl PartialEq for JsonBoolean
Source§impl Serialize for JsonBoolean
impl Serialize for JsonBoolean
Source§impl ToSource for JsonBoolean
impl ToSource for JsonBoolean
Source§fn to_source(&self, buffer: &mut SourceBuffer)
fn to_source(&self, buffer: &mut SourceBuffer)
Writes the source code representation of this type to the provided buffer.
Source§fn to_source_string(&self) -> String
fn to_source_string(&self) -> String
Converts this type to a source code string.
impl StructuralPartialEq for JsonBoolean
Auto Trait Implementations§
impl Freeze for JsonBoolean
impl RefUnwindSafe for JsonBoolean
impl Send for JsonBoolean
impl Sync for JsonBoolean
impl Unpin for JsonBoolean
impl UnsafeUnpin for JsonBoolean
impl UnwindSafe for JsonBoolean
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