pub trait ContentExtractor {
// Required methods
fn extract_tagged(&self, text: &str, tag: &str) -> Option<String>;
fn extract_json_like(&self, text: &str) -> Option<String>;
fn extract_pattern(&self, text: &str, pattern: &str) -> Option<String>;
}Expand description
Trait for extracting tagged or structured content
Required Methods§
Sourcefn extract_tagged(&self, text: &str, tag: &str) -> Option<String>
fn extract_tagged(&self, text: &str, tag: &str) -> Option<String>
Extract content within specified tags
Sourcefn extract_json_like(&self, text: &str) -> Option<String>
fn extract_json_like(&self, text: &str) -> Option<String>
Extract JSON-like content
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".