#[repr(u8)]pub enum CheckedBidiPairedBracketType {
None = 0,
Open = 1,
Close = 2,
}
Expand description
A closed Rust enum representing a closed set of the incoming Bidi_Paired_Bracket_Type
property values necessary in the internal representation of MirroredPairedBracketData
to satisfy the ULE invariants on valid values.
Variants§
Implementations§
source§impl CheckedBidiPairedBracketType
impl CheckedBidiPairedBracketType
sourcepub(crate) fn new_from_u8(value: u8) -> Option<Self>
pub(crate) fn new_from_u8(value: u8) -> Option<Self>
Attempt to construct the value from its corresponding integer,
returning None
if not possible
Trait Implementations§
source§impl AsULE for CheckedBidiPairedBracketType
impl AsULE for CheckedBidiPairedBracketType
§type ULE = CheckedBidiPairedBracketTypeULE
type ULE = CheckedBidiPairedBracketTypeULE
The ULE type corresponding to
Self
. Read moresource§fn to_unaligned(self) -> Self::ULE
fn to_unaligned(self) -> Self::ULE
source§fn from_unaligned(other: Self::ULE) -> Self
fn from_unaligned(other: Self::ULE) -> Self
source§impl Clone for CheckedBidiPairedBracketType
impl Clone for CheckedBidiPairedBracketType
source§fn clone(&self) -> CheckedBidiPairedBracketType
fn clone(&self) -> CheckedBidiPairedBracketType
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 CheckedBidiPairedBracketType
impl Debug for CheckedBidiPairedBracketType
source§impl Ord for CheckedBidiPairedBracketType
impl Ord for CheckedBidiPairedBracketType
source§fn cmp(&self, other: &CheckedBidiPairedBracketType) -> Ordering
fn cmp(&self, other: &CheckedBidiPairedBracketType) -> 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 CheckedBidiPairedBracketType
impl PartialEq for CheckedBidiPairedBracketType
source§fn eq(&self, other: &CheckedBidiPairedBracketType) -> bool
fn eq(&self, other: &CheckedBidiPairedBracketType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CheckedBidiPairedBracketType
impl PartialOrd for CheckedBidiPairedBracketType
source§fn partial_cmp(&self, other: &CheckedBidiPairedBracketType) -> Option<Ordering>
fn partial_cmp(&self, other: &CheckedBidiPairedBracketType) -> Option<Ordering>
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 TrieValue for CheckedBidiPairedBracketType
impl TrieValue for CheckedBidiPairedBracketType
§type TryFromU32Error = TryFromIntError
type TryFromU32Error = TryFromIntError
Last-resort fallback value to return if we cannot read data from the trie. Read more
source§fn try_from_u32(i: u32) -> Result<Self, Self::TryFromU32Error>
fn try_from_u32(i: u32) -> Result<Self, Self::TryFromU32Error>
A parsing function that is primarily motivated by deserialization contexts.
When the serialization type width is smaller than 32 bits, then it is expected
that the call site will widen the value to a
u32
first.source§impl<'a> ZeroMapKV<'a> for CheckedBidiPairedBracketType
impl<'a> ZeroMapKV<'a> for CheckedBidiPairedBracketType
§type Container = ZeroVec<'a, CheckedBidiPairedBracketType>
type Container = ZeroVec<'a, CheckedBidiPairedBracketType>
The container that can be used with this type:
ZeroVec
or VarZeroVec
.type Slice = ZeroSlice<CheckedBidiPairedBracketType>
§type GetType = CheckedBidiPairedBracketTypeULE
type GetType = CheckedBidiPairedBracketTypeULE
The type produced by
Container::get()
Read more§type OwnedType = CheckedBidiPairedBracketType
type OwnedType = CheckedBidiPairedBracketType
The type produced by
Container::replace()
and Container::remove()
,
also used during deserialization. If Self
is human readable serialized,
deserializing to Self::OwnedType
should produce the same value once
passed through Self::owned_as_self()
Read moreimpl Copy for CheckedBidiPairedBracketType
impl Eq for CheckedBidiPairedBracketType
impl StructuralPartialEq for CheckedBidiPairedBracketType
Auto Trait Implementations§
impl Freeze for CheckedBidiPairedBracketType
impl RefUnwindSafe for CheckedBidiPairedBracketType
impl Send for CheckedBidiPairedBracketType
impl Sync for CheckedBidiPairedBracketType
impl Unpin for CheckedBidiPairedBracketType
impl UnwindSafe for CheckedBidiPairedBracketType
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