pub enum CustomBool {
True,
False,
Unspecified,
}Expand description
re-exports
Creates a custom boolean value with more features than a Rustlang boolean which has only true or false
§Examples
let foo = CustomBool::Unspecified;
assert_eq!(foo, CustomBool::Unspecified);Variants§
True
Similar to boolean true
False
Similar to boolean false
Unspecified
Status of an operation is not initialized
Trait Implementations§
Source§impl Clone for CustomBool
impl Clone for CustomBool
Source§fn clone(&self) -> CustomBool
fn clone(&self) -> CustomBool
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 CustomBool
impl Debug for CustomBool
Source§impl<'de> Deserialize<'de> for CustomBool
impl<'de> Deserialize<'de> for CustomBool
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 CustomBool
impl PartialEq for CustomBool
Source§impl Serialize for CustomBool
impl Serialize for CustomBool
impl Eq for CustomBool
impl StructuralPartialEq for CustomBool
Auto Trait Implementations§
impl Freeze for CustomBool
impl RefUnwindSafe for CustomBool
impl Send for CustomBool
impl Sync for CustomBool
impl Unpin for CustomBool
impl UnsafeUnpin for CustomBool
impl UnwindSafe for CustomBool
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