pub struct RuleBreakDataV1<'data> {
pub property_table: CodePointTrie<'data, u8>,
pub break_state_table: ZeroVec<'data, BreakState>,
pub word_type_table: ZeroVec<'data, WordType>,
pub property_count: u8,
pub last_codepoint_property: u8,
pub sot_property: u8,
pub eot_property: u8,
pub complex_property: u8,
}Expand description
Pre-processed Unicode data in the form of tables to be used for rule-based breaking.
Fieldsยง
ยงproperty_table: CodePointTrie<'data, u8>Property table.
break_state_table: ZeroVec<'data, BreakState>Break state table.
word_type_table: ZeroVec<'data, WordType>Word type table. Only used for word segmenter.
property_count: u8Number of properties; should be the square root of the length of Self::break_state_table.
last_codepoint_property: u8The index of the last simple state for Self::break_state_table. (A simple state has no
left nor right in SegmenterProperty).
sot_property: u8The index of SOT (start of text) state for Self::break_state_table.
eot_property: u8The index of EOT (end of text) state Self::break_state_table.
complex_property: u8The index of โSAโ state (or 127 if the complex language isnโt handled) for
Self::break_state_table.
Trait Implementationsยง
Sourceยงimpl<'data> Clone for RuleBreakDataV1<'data>
impl<'data> Clone for RuleBreakDataV1<'data>
Sourceยงfn clone(&self) -> RuleBreakDataV1<'data>
fn clone(&self) -> RuleBreakDataV1<'data>
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSourceยงimpl<'data> Debug for RuleBreakDataV1<'data>
impl<'data> Debug for RuleBreakDataV1<'data>
Sourceยงimpl<'data> PartialEq for RuleBreakDataV1<'data>
impl<'data> PartialEq for RuleBreakDataV1<'data>
Sourceยงimpl<'a> Yokeable<'a> for RuleBreakDataV1<'static>
impl<'a> Yokeable<'a> for RuleBreakDataV1<'static>
Sourceยงtype Output = RuleBreakDataV1<'a>
type Output = RuleBreakDataV1<'a>
Self with the 'static replaced with 'a, i.e. Self<'a>Sourceยงfn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
Sourceยงimpl<'zf, 'zf_inner> ZeroFrom<'zf, RuleBreakDataV1<'zf_inner>> for RuleBreakDataV1<'zf>
impl<'zf, 'zf_inner> ZeroFrom<'zf, RuleBreakDataV1<'zf_inner>> for RuleBreakDataV1<'zf>
Sourceยงfn zero_from(this: &'zf RuleBreakDataV1<'zf_inner>) -> Self
fn zero_from(this: &'zf RuleBreakDataV1<'zf_inner>) -> Self
C into a struct that may retain references into C.impl<'data> StructuralPartialEq for RuleBreakDataV1<'data>
Auto Trait Implementationsยง
impl<'data> Freeze for RuleBreakDataV1<'data>
impl<'data> RefUnwindSafe for RuleBreakDataV1<'data>
impl<'data> Send for RuleBreakDataV1<'data>
impl<'data> Sync for RuleBreakDataV1<'data>
impl<'data> Unpin for RuleBreakDataV1<'data>
impl<'data> UnwindSafe for RuleBreakDataV1<'data>
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
Layoutยง
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's โType Layoutโ chapter for details on type layout guarantees.
Size: 128 bytes