MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / pattern

Method pattern

src/repr/src/adt/regex.rs:105–109  ·  view source on GitHub ↗

Returns the pattern string of the regex.

(&self)

Source from the content-addressed store, hash-verified

103
104 /// Returns the pattern string of the regex.
105 pub fn pattern(&self) -> &str {
106 // `as_str` returns the raw pattern as provided during construction,
107 // and doesn't include any of the flags.
108 self.regex.as_str()
109 }
110}
111
112/// Error type for regex compilation failures.

Callers 4

eqMethod · 0.45
cmpMethod · 0.45
hashMethod · 0.45
serializeMethod · 0.45

Calls 1

as_strMethod · 0.45

Tested by

no test coverage detected