pub trait Regex<C> {
type Ret;
// Required method
fn try_parse(&self, ctx: &mut C) -> Result<Self::Ret, Error>;
// Provided method
fn parse(&self, ctx: &mut C) -> bool { ... }
}pub trait Regex<C> {
type Ret;
// Required method
fn try_parse(&self, ctx: &mut C) -> Result<Self::Ret, Error>;
// Provided method
fn parse(&self, ctx: &mut C) -> bool { ... }
}