#[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
Source§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 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 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
Tests for 
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CheckedBidiPairedBracketType
 
impl PartialOrd for CheckedBidiPairedBracketType
Source§impl TrieValue for CheckedBidiPairedBracketType
 
impl TrieValue for CheckedBidiPairedBracketType
Source§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
Source§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>
Source§type GetType = CheckedBidiPairedBracketTypeULE
 
type GetType = CheckedBidiPairedBracketTypeULE
The type produced by 
Container::get() Read moreSource§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