pub struct LinePattern {
pub regex: Regex,
}Expand description
A pattern dedicated to line matching.
In the future, this may become more complex (eg filtering by style or origin)
Fields§
§regex: RegexImplementations§
Source§impl LinePattern
impl LinePattern
pub fn raw_line_is_match(&self, line: &str) -> bool
Trait Implementations§
Source§impl Clone for LinePattern
impl Clone for LinePattern
Source§fn clone(&self) -> LinePattern
fn clone(&self) -> LinePattern
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LinePattern
impl Debug for LinePattern
Source§impl<'de> Deserialize<'de> for LinePattern
impl<'de> Deserialize<'de> for LinePattern
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromStr for LinePattern
impl FromStr for LinePattern
Source§impl JsonSchema for LinePattern
impl JsonSchema for LinePattern
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(_gen: &mut SchemaGenerator) -> Schema
fn json_schema(_gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for LinePattern
impl PartialEq for LinePattern
Auto Trait Implementations§
impl Freeze for LinePattern
impl RefUnwindSafe for LinePattern
impl Send for LinePattern
impl Sync for LinePattern
impl Unpin for LinePattern
impl UnwindSafe for LinePattern
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more