MCPcopy Create free account
hub / github.com/davidblewett/rure-python / fmt

Method fmt

regex/src/error.rs:46–55  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter)

Source from the content-addressed store, hash-verified

44
45impl fmt::Display for Error {
46 fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
47 match *self {
48 Error::Syntax(ref err) => err.fmt(f),
49 Error::CompiledTooBig(limit) => {
50 write!(f, "Compiled regex exceeds size limit of {} bytes.",
51 limit)
52 }
53 Error::__Nonexhaustive => unreachable!(),
54 }
55 }
56}
57
58// We implement our own Debug implementation so that we show nicer syntax

Callers

nothing calls this directly

Calls 1

finishMethod · 0.45

Tested by

no test coverage detected