pub trait FromPatternSource {
// Provided methods
fn from_source<F: MatcherFactory>(
from: &mut PatternSource,
) -> Result<F::Matcher, BuildError> { ... }
fn from_source_ignore_errors<F: MatcherFactory>(
from: &mut PatternSource,
) -> F::Matcher { ... }
fn check_pattern<M: Matcher>(
matcher: &mut M,
result: BuildResult,
) -> Result<(), BuildError> { ... }
fn extract_test_messages(pattern: &mut Pattern) -> Vec<TestMessage> { ... }
fn check_test_messages<M: Matcher>(
matcher: &M,
messages: &[TestMessage],
uuid: &Uuid,
) -> Result<(), BuildError> { ... }
fn check_test_message(
message: &TestMessage,
result: &MatchResult<'_, '_>,
expected_uuid: &Uuid,
) -> Result<(), Error> { ... }
}
Provided Methods§
fn from_source<F: MatcherFactory>( from: &mut PatternSource, ) -> Result<F::Matcher, BuildError>
fn from_source_ignore_errors<F: MatcherFactory>( from: &mut PatternSource, ) -> F::Matcher
fn check_pattern<M: Matcher>( matcher: &mut M, result: BuildResult, ) -> Result<(), BuildError>
fn extract_test_messages(pattern: &mut Pattern) -> Vec<TestMessage>
fn check_test_messages<M: Matcher>( matcher: &M, messages: &[TestMessage], uuid: &Uuid, ) -> Result<(), BuildError>
fn check_test_message( message: &TestMessage, result: &MatchResult<'_, '_>, expected_uuid: &Uuid, ) -> Result<(), Error>
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.