pub struct LookLayout {
is_word_byte_table: Option<IsWordByteTable>,
}
Expand description
TODO: Write docs for this item
Fields§
§is_word_byte_table: Option<IsWordByteTable>
Implementations§
Source§impl LookLayout
impl LookLayout
Sourceconst UTF8_IS_WORD_BYTE_LUT: [bool; 256]
const UTF8_IS_WORD_BYTE_LUT: [bool; 256]
This lookup table is true for bytes which are considered “word” unicode characters.
The logic is copied directly from https://github.com/rust-lang/regex/blob/master/regex-automata/src/util/utf8.rs#L17-L37 As the comment on the function (in the link) mentions, no bit-rot because this will not change.
Sourcepub fn new(
ctx: &mut CompileContext,
overall: Layout,
) -> Result<(Layout, Self), LayoutError>
pub fn new( ctx: &mut CompileContext, overall: Layout, ) -> Result<(Layout, Self), LayoutError>
TODO: Write docs for item
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LookLayout
impl RefUnwindSafe for LookLayout
impl Send for LookLayout
impl Sync for LookLayout
impl Unpin for LookLayout
impl UnwindSafe for LookLayout
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