pub struct Simple(pub u8);
Expand description
A “simple value” data item.
Tuple Fields§
§0: u8
Implementations§
source§impl Simple
impl Simple
sourcepub const FALSE: Simple = _
pub const FALSE: Simple = _
The simple value “False”, equivalent to false
.
Defined in RFC 7049 § 2.3: Table 2.
sourcepub const TRUE: Simple = _
pub const TRUE: Simple = _
The simple value “True”, equivalent to true
.
Defined in RFC 7049 § 2.3: Table 2.
sourcepub const NULL: Simple = _
pub const NULL: Simple = _
The simple value “Null”, equivalent to a generic None
.
Defined in RFC 7049 § 2.3: Table 2.
sourcepub const UNDEFINED: Simple = _
pub const UNDEFINED: Simple = _
The simple value “Undefined value”, not really equivalent to any Rust
Defined in RFC 7049 § 2.3: Table 2.
concept.
Trait Implementations§
source§impl PartialEq<Simple> for Simple
impl PartialEq<Simple> for Simple
impl Copy for Simple
impl Eq for Simple
impl StructuralEq for Simple
impl StructuralPartialEq for Simple
Auto Trait Implementations§
impl RefUnwindSafe for Simple
impl Send for Simple
impl Sync for Simple
impl Unpin for Simple
impl UnwindSafe for Simple
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