Skip to main content

LatticeInput

Struct LatticeInput 

Source
pub struct LatticeInput<'a> {
    pub bytes: &'a [u8],
    pub can_bow: &'a [u8],
    pub char_categories: &'a [u32],
    pub word_candidate_lengths: &'a [u32],
    pub continuous_lengths: &'a [u32],
    pub code_point_byte_lengths_flat: &'a [u8],
    pub code_point_offsets: &'a [u32],
}
Expand description

Pre-packed input text data for lattice construction.

Fields§

§bytes: &'a [u8]§can_bow: &'a [u8]§char_categories: &'a [u32]§word_candidate_lengths: &'a [u32]§continuous_lengths: &'a [u32]§code_point_byte_lengths_flat: &'a [u8]§code_point_offsets: &'a [u32]

Auto Trait Implementations§

§

impl<'a> Freeze for LatticeInput<'a>

§

impl<'a> RefUnwindSafe for LatticeInput<'a>

§

impl<'a> Send for LatticeInput<'a>

§

impl<'a> Sync for LatticeInput<'a>

§

impl<'a> Unpin for LatticeInput<'a>

§

impl<'a> UnsafeUnpin for LatticeInput<'a>

§

impl<'a> UnwindSafe for LatticeInput<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.