Struct icu_casemap::provider::exception_helpers::SlotPresence
source · #[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
Implementations§
source§impl SlotPresence
impl SlotPresence
pub(crate) fn add_slot(&mut self, slot: ExceptionSlot)
pub(crate) fn has_slot(self, slot: ExceptionSlot) -> bool
Trait Implementations§
source§impl AsULE for SlotPresence
impl AsULE for SlotPresence
§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 PartialEq for SlotPresence
impl PartialEq for SlotPresence
source§fn eq(&self, other: &SlotPresence) -> bool
fn eq(&self, other: &SlotPresence) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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