Trait restructure::RegexStruct
[−]
[src]
pub trait RegexStruct { fn find(&self, text: &str) -> Self; }
This trait allows you to match struct fields with regexp
Required Methods
fn find(&self, text: &str) -> Self
This function takes a Slice, find Captures in it and assigns it to the appropriate struct fields