pub enum TraitKey {
PrimaryDirection,
HasBidiElements,
RequiresShaping,
UnicodePreloadBlocks,
SegmentationStrategy,
MorphologyType,
PluralCategories,
DefaultNumberingSystem,
DefaultCalendar,
}Expand description
The “Golden Set” of trait keys used in the CapabilityManifest.
Time: O(1) | Space: O(1)
§Logic Trace (Internal)
- Represents standard keys for the DTO
traitsmap. - Utilizes
SCREAMING_SNAKE_CASEserialization to match the DTO standard.
§Examples
use crate::bistun_core::traits::TraitKey;
let key = TraitKey::SegmentationStrategy;
assert_eq!(key, TraitKey::SegmentationStrategy);Variants§
PrimaryDirection
The primary layout direction (e.g., LTR, RTL).
HasBidiElements
Indicates if the text naturally contains bidirectional elements.
RequiresShaping
Indicates if the script requires complex shaping (e.g., Arabic).
UnicodePreloadBlocks
Unicode blocks to preload for rendering.
SegmentationStrategy
Strategy used for word and sentence boundary detection.
MorphologyType
Typological classification of word formation.
PluralCategories
Plural category logic required for the locale.
DefaultNumberingSystem
Default numeric system (e.g., latn, arab).
DefaultCalendar
Default calendar system (e.g., gregory, islamic).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TraitKey
impl<'de> Deserialize<'de> for TraitKey
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
impl Copy for TraitKey
impl Eq for TraitKey
impl StructuralPartialEq for TraitKey
Auto Trait Implementations§
impl Freeze for TraitKey
impl RefUnwindSafe for TraitKey
impl Send for TraitKey
impl Sync for TraitKey
impl Unpin for TraitKey
impl UnsafeUnpin for TraitKey
impl UnwindSafe for TraitKey
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.