pub struct EsRegexSet { /* private fields */ }Expand description
A group of EsRegexes matched against a haystack as a unit.
The members backed by the regex crate are compiled into a single [regex::RegexSet] once,
when the group is built, rather than on every match. The remainder (those that fall back to
regress, e.g. for lookahead) are matched one at a time.
Implementations§
Source§impl EsRegexSet
impl EsRegexSet
Sourcepub fn cell(self) -> Vc<Self>
pub fn cell(self) -> Vc<Self>
Places a value in a cell of the current task.
Cell is selected based on the value type and call order of cell.
Sourcepub fn resolved_cell(self) -> ResolvedVc<Self>
pub fn resolved_cell(self) -> ResolvedVc<Self>
Places a value in a cell of the current task. Returns a
[ResolvedVc][turbo_tasks::ResolvedVc].
Cell is selected based on the value type and call order of cell.
Source§impl EsRegexSet
impl EsRegexSet
Sourcepub fn new(regexes: Vec<EsRegex>) -> Self
pub fn new(regexes: Vec<EsRegex>) -> Self
Builds the combined matcher. Members backed by regress can’t join a
[regex::RegexSet], and the combined program has its own size limit; either way the
leftovers are recorded up front and matched one at a time.
Trait Implementations§
Source§impl<'de, __Context> BorrowDecode<'de, __Context> for EsRegexSet
impl<'de, __Context> BorrowDecode<'de, __Context> for EsRegexSet
Source§fn borrow_decode<D: BorrowDecoder<'de, Context = __Context>>(
decoder: &mut D,
) -> Result<Self, DecodeError>
fn borrow_decode<D: BorrowDecoder<'de, Context = __Context>>( decoder: &mut D, ) -> Result<Self, DecodeError>
Source§impl Clone for EsRegexSet
impl Clone for EsRegexSet
Source§fn clone(&self) -> EsRegexSet
fn clone(&self) -> EsRegexSet
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EsRegexSet
impl Debug for EsRegexSet
Source§impl<Context> Decode<Context> for EsRegexSet
impl<Context> Decode<Context> for EsRegexSet
Source§impl Default for EsRegexSet
impl Default for EsRegexSet
Source§impl Encode for EsRegexSet
impl Encode for EsRegexSet
impl Eq for EsRegexSet
impl NonLocalValue for EsRegexSet
Source§impl PartialEq for EsRegexSet
impl PartialEq for EsRegexSet
Source§impl ShrinkToFit for EsRegexSet
impl ShrinkToFit for EsRegexSet
fn shrink_to_fit(&mut self)
impl Upcast<Box<dyn ValueDebug>> for EsRegexSet
impl UpcastStrict<Box<dyn ValueDebug>> for EsRegexSet
Source§impl ValueDebug for EsRegexSet
impl ValueDebug for EsRegexSet
Source§impl ValueDebugFormat for EsRegexSet
Available on debug-assertions enabled only.
impl ValueDebugFormat for EsRegexSet
fn value_debug_format<'a>(&'a self, depth: usize) -> ValueDebugFormatString<'a>
Source§impl VcValueType for EsRegexSet
impl VcValueType for EsRegexSet
Source§type Read = VcDefaultRead<EsRegexSet>
type Read = VcDefaultRead<EsRegexSet>
Source§type CellMode = VcCellCompareMode<EsRegexSet>
type CellMode = VcCellCompareMode<EsRegexSet>
Source§fn get_value_type_id() -> ValueTypeId
fn get_value_type_id() -> ValueTypeId
fn has_serialization() -> bool
Auto Trait Implementations§
impl Freeze for EsRegexSet
impl RefUnwindSafe for EsRegexSet
impl Send for EsRegexSet
impl Sync for EsRegexSet
impl Unpin for EsRegexSet
impl UnsafeUnpin for EsRegexSet
impl UnwindSafe for EsRegexSet
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DynEq for T
§impl<T> DynPartialEq for T
impl<T> DynPartialEq for T
fn dyn_partial_eq(&self, other: &(dyn Any + 'static)) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more