pub trait PatternBackend:
Sealed
+ 'static
+ Debug {
type PlaceholderKey<'a>;
type PlaceholderKeyCow<'a>;
type Error<'a>;
}
Expand description
Types that implement backing data models for Pattern
implement this trait.
The trait has no public methods and is not implementable outside of this crate.
🚫 This trait is sealed; it cannot be implemented by user code. If an API requests an item that implements this
trait, please consider using a type from the implementors listed below.
Required Associated Types§
Sourcetype PlaceholderKey<'a>
type PlaceholderKey<'a>
The type to be used as the placeholder key in code.
Sourcetype PlaceholderKeyCow<'a>
type PlaceholderKeyCow<'a>
Cowable version of the type to be used as the placeholder key in code.
Sourcetype Error<'a>
type Error<'a>
The type of error that the TryWriteable
for this backend can return.
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.