Struct regex_automata::util::determinize::state::StateBuilderEmpty
source · pub(crate) struct StateBuilderEmpty(Vec<u8>);
Expand description
A state builder that represents an empty state.
This is a useful “initial condition” for state construction. It has no NFA state IDs, no assertions set and no pattern IDs. No allocations are made when new() is called. Its main use is for being converted into a builder that can capture assertions and pattern IDs.
Tuple Fields§
§0: Vec<u8>
Implementations§
source§impl StateBuilderEmpty
impl StateBuilderEmpty
For docs on these routines, see the internal Repr and ReprVec types below.
pub(crate) fn new() -> StateBuilderEmpty
pub(crate) fn into_matches(self) -> StateBuilderMatches
fn clear(&mut self)
pub(crate) fn capacity(&self) -> usize
Trait Implementations§
source§impl Clone for StateBuilderEmpty
impl Clone for StateBuilderEmpty
source§fn clone(&self) -> StateBuilderEmpty
fn clone(&self) -> StateBuilderEmpty
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for StateBuilderEmpty
impl RefUnwindSafe for StateBuilderEmpty
impl Send for StateBuilderEmpty
impl Sync for StateBuilderEmpty
impl Unpin for StateBuilderEmpty
impl UnwindSafe for StateBuilderEmpty
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)