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.
๐ง 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.
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.
Implementationsยง
Sourceยงimpl RuleBreakDataV1<'_>
 
impl RuleBreakDataV1<'_>
fn get_linebreak_property_utf32_with_rule( &self, codepoint: u32, strictness: LineBreakStrictness, word_option: LineBreakWordOption, ) -> u8
fn get_break_state_from_table(&self, left: u8, right: u8) -> BreakState
fn use_complex_breaking_utf32(&self, codepoint: u32) -> bool
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>
Returns a duplicate 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<'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>
This type MUST be 
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
Clone the other 
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
Mutably borrows from an owned value. Read more