#[repr(transparent)]pub struct SlotPresence(pub u8);
Expand description
Packed slot presence marker
All bits are valid, though bit 4 is unused and reserved
Bits:
0: Lowercase mapping (code point)
1: Case folding (code point)
2: Uppercase mapping (code point)
3: Titlecase mapping (code point)
4: Delta to simple case mapping (code point) (sign stored separately)
5: RESERVED
6: Closure mappings (string; see below)
7: Full mappings (strings; see below)
๐ง This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
including in SemVer minor releases. While the serde representation of data structs is guaranteed
to be stable, their Rust representation might not be. Use with caution.
Tuple Fieldsยง
ยง0: u8
Trait Implementationsยง
Sourceยงimpl AsULE for SlotPresence
impl AsULE for SlotPresence
Sourceยงtype ULE = SlotPresence
type ULE = SlotPresence
The ULE type corresponding to
Self
. Read moreSourceยงfn from_unaligned(u: Self) -> Self
fn from_unaligned(u: Self) -> Self
Sourceยงfn to_unaligned(self) -> Self
fn to_unaligned(self) -> Self
Sourceยงimpl Clone for SlotPresence
impl Clone for SlotPresence
Sourceยงfn clone(&self) -> SlotPresence
fn clone(&self) -> SlotPresence
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 SlotPresence
impl Debug for SlotPresence
Sourceยงimpl Default for SlotPresence
impl Default for SlotPresence
Sourceยงfn default() -> SlotPresence
fn default() -> SlotPresence
Returns the โdefault valueโ for a type. Read more
Sourceยงimpl<'de> Deserialize<'de> for SlotPresence
impl<'de> Deserialize<'de> for SlotPresence
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 SlotPresence
impl PartialEq for SlotPresence
Sourceยงimpl ULE for SlotPresence
impl ULE for SlotPresence
Sourceยงfn validate_byte_slice(bytes: &[u8]) -> Result<(), ZeroVecError>
fn validate_byte_slice(bytes: &[u8]) -> Result<(), ZeroVecError>
Validates a byte slice,
&[u8]
. Read moreSourceยงfn parse_byte_slice(bytes: &[u8]) -> Result<&[Self], ZeroVecError>
fn parse_byte_slice(bytes: &[u8]) -> Result<&[Self], ZeroVecError>
Sourceยงunsafe fn from_byte_slice_unchecked(bytes: &[u8]) -> &[Self]
unsafe fn from_byte_slice_unchecked(bytes: &[u8]) -> &[Self]
Takes a byte slice,
&[u8]
, and return it as &[Self]
with the same lifetime, assuming
that this byte slice has previously been run through Self::parse_byte_slice()
with
success. Read moreimpl Copy for SlotPresence
impl Eq for SlotPresence
impl StructuralPartialEq for SlotPresence
Auto Trait Implementationsยง
impl Freeze for SlotPresence
impl RefUnwindSafe for SlotPresence
impl Send for SlotPresence
impl Sync for SlotPresence
impl Unpin for SlotPresence
impl UnwindSafe for SlotPresence
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