pub struct Bool(/* private fields */);Expand description
Subtype of Value that represents a boolean
Trait Implementations§
source§impl ArithmeticOperationExt for Bool
impl ArithmeticOperationExt for Bool
source§fn arithmetic_op(
left: &Self,
right: &Self,
operation: ArithmeticOperation
) -> Result<Self, Error>
fn arithmetic_op( left: &Self, right: &Self, operation: ArithmeticOperation ) -> Result<Self, Error>
Perform an arithmetic operation on two values
If the operation is not supported on the given type,
an
Error::UnsupportedOperation will be returned Read moresource§impl BooleanOperationExt for Bool
impl BooleanOperationExt for Bool
source§fn boolean_op(
left: &Self,
right: &Self,
operation: BooleanOperation
) -> Result<Value, Error>
fn boolean_op( left: &Self, right: &Self, operation: BooleanOperation ) -> Result<Value, Error>
Perform a boolean operation on two values
If the operation is not supported on the given type,
an
Error::UnsupportedOperation will be returned Read moresource§impl<'de> Deserialize<'de> for Bool
impl<'de> Deserialize<'de> for Bool
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 Ord for Bool
impl Ord for Bool
source§impl PartialEq for Bool
impl PartialEq for Bool
source§impl PartialOrd for Bool
impl PartialOrd for Bool
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl ValueTrait<bool> for Bool
impl ValueTrait<bool> for Bool
impl Eq for Bool
impl StructuralEq for Bool
impl StructuralPartialEq for Bool
Auto Trait Implementations§
impl RefUnwindSafe for Bool
impl Send for Bool
impl Sync for Bool
impl Unpin for Bool
impl UnwindSafe for Bool
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