#[repr(transparent)]pub struct HardenedBool(pub u32);
Expand description
From //sw/device/lib/base/hardened.h
.
Tuple Fields§
§0: u32
Implementations§
Source§impl HardenedBool
impl HardenedBool
pub const True: HardenedBool = _
pub const False: HardenedBool = _
Source§impl HardenedBool
impl HardenedBool
Trait Implementations§
Source§impl Binary for HardenedBool
impl Binary for HardenedBool
Source§impl Clone for HardenedBool
impl Clone for HardenedBool
Source§fn clone(&self) -> HardenedBool
fn clone(&self) -> HardenedBool
Returns a copy 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 HardenedBool
impl Debug for HardenedBool
Source§impl Default for HardenedBool
impl Default for HardenedBool
Source§impl<'de> Deserialize<'de> for HardenedBool
impl<'de> Deserialize<'de> for HardenedBool
Source§fn deserialize<D>(deserializer: D) -> Result<HardenedBool, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<HardenedBool, D::Error>where
D: Deserializer<'de>,
Deserializes the value by forwarding to deserialize_any
.
deserialize_any
will forward strings to the string visitor
and forward integers to the appropriate integer visitor.
Source§impl Display for HardenedBool
impl Display for HardenedBool
Source§impl From<HardenedBool> for u32
impl From<HardenedBool> for u32
Source§fn from(v: HardenedBool) -> u32
fn from(v: HardenedBool) -> u32
Converts to this type from the input type.
Source§impl FromStr for HardenedBool
impl FromStr for HardenedBool
Source§impl Hash for HardenedBool
impl Hash for HardenedBool
Source§impl LowerHex for HardenedBool
impl LowerHex for HardenedBool
Source§impl Octal for HardenedBool
impl Octal for HardenedBool
Source§impl Ord for HardenedBool
impl Ord for HardenedBool
Source§fn cmp(&self, other: &HardenedBool) -> Ordering
fn cmp(&self, other: &HardenedBool) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for HardenedBool
impl PartialEq for HardenedBool
Source§impl PartialOrd for HardenedBool
impl PartialOrd for HardenedBool
Source§impl Serialize for HardenedBool
impl Serialize for HardenedBool
Source§impl TryFrom<i16> for HardenedBool
impl TryFrom<i16> for HardenedBool
Source§impl TryFrom<i32> for HardenedBool
impl TryFrom<i32> for HardenedBool
Source§impl TryFrom<i64> for HardenedBool
impl TryFrom<i64> for HardenedBool
Source§impl TryFrom<i8> for HardenedBool
impl TryFrom<i8> for HardenedBool
Source§impl TryFrom<u16> for HardenedBool
impl TryFrom<u16> for HardenedBool
Source§impl TryFrom<u32> for HardenedBool
impl TryFrom<u32> for HardenedBool
Source§impl TryFrom<u64> for HardenedBool
impl TryFrom<u64> for HardenedBool
Source§impl TryFrom<u8> for HardenedBool
impl TryFrom<u8> for HardenedBool
Source§impl UpperHex for HardenedBool
impl UpperHex for HardenedBool
Source§impl ValueEnum for HardenedBool
impl ValueEnum for HardenedBool
impl Copy for HardenedBool
impl Eq for HardenedBool
impl StructuralPartialEq for HardenedBool
Auto Trait Implementations§
impl Freeze for HardenedBool
impl RefUnwindSafe for HardenedBool
impl Send for HardenedBool
impl Sync for HardenedBool
impl Unpin for HardenedBool
impl UnwindSafe for HardenedBool
Blanket Implementations§
§impl<T> Annotate for T
impl<T> Annotate for T
default fn format( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<Format>
default fn comment( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<String>
default fn as_annotate(&self) -> Option<&dyn Annotate>
default fn thunk_serialize( &self, serializer: &mut AnnotatedSerializer<'_>, ) -> Result<Document, Error>
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