pub struct AnalyzeResult<'a> {
pub input: &'a str,
pub results: Vec<Hit<'a, RuleResult<'a>>>,
}Expand description
综合分析报告。
包含了原始文本以及所有成功命中的规则结果。
Fields§
§input: &'a str原始被分析的文本。
results: Vec<Hit<'a, RuleResult<'a>>>成功命中的规则及结果列表。
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for AnalyzeResult<'a>
impl<'a> RefUnwindSafe for AnalyzeResult<'a>
impl<'a> Send for AnalyzeResult<'a>
impl<'a> Sync for AnalyzeResult<'a>
impl<'a> Unpin for AnalyzeResult<'a>
impl<'a> UnsafeUnpin for AnalyzeResult<'a>
impl<'a> UnwindSafe for AnalyzeResult<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more