Trait RegexStruct

Source
pub trait RegexStruct {
    // Required method
    fn find(&self, text: &str) -> Self;
}
Expand description

This trait allows you to match struct fields with regexp

Required Methods§

Source

fn find(&self, text: &str) -> Self

This function takes a Slice, find Captures in it and assigns it to the appropriate struct fields

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§