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
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: SlotPresence) -> SlotPresence
fn from_unaligned(u: SlotPresence) -> SlotPresence
source§fn to_unaligned(self) -> SlotPresence
fn to_unaligned(self) -> SlotPresence
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<SlotPresence, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SlotPresence, <__D as Deserializer<'de>>::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 Serialize for SlotPresence
impl Serialize for SlotPresence
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
source§impl ULE for SlotPresence
impl ULE for SlotPresence
source§fn validate_byte_slice(bytes: &[u8]) -> Result<(), UleError>
fn validate_byte_slice(bytes: &[u8]) -> Result<(), UleError>
Validates a byte slice,
&[u8]
. Read moresource§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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more