#[repr(i32)]pub enum Trilean {
NotSet = 0,
True = 1,
False = 2,
}Expand description
Trilean is an expanded boolean type that is meant to differentiate between being unset and false.
Variants§
Implementations§
Source§impl Trilean
impl Trilean
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Ord for Trilean
impl Ord for Trilean
Source§impl PartialOrd for Trilean
impl PartialOrd for Trilean
impl Copy for Trilean
impl Eq for Trilean
impl StructuralPartialEq for Trilean
Auto Trait Implementations§
impl Freeze for Trilean
impl RefUnwindSafe for Trilean
impl Send for Trilean
impl Sync for Trilean
impl Unpin for Trilean
impl UnsafeUnpin for Trilean
impl UnwindSafe for Trilean
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