Struct regex_automata::util::wire::AlignAs   
source · Expand description
A hack to align a smaller type B with a bigger type T.
The usual use of this is with B = [u8] and T = u32. That is,
it permits aligning a sequence of bytes on a 4-byte boundary. This
is useful in contexts where one wants to embed a serialized dense
DFA into a Rust a program while guaranteeing the
alignment required for the DFA.
See dense::DFA::from_bytes for an
example of how to use this type.
Fields§
§_align: [T; 0]A zero-sized field indicating the alignment we want.
bytes: BA possibly non-sized field containing a sequence of bytes.