Trait UnspecializedInput
pub trait UnspecializedInput { }Available on crate feature
rustls only.Expand description
Dummy trait used for default implementations (currently only used for InputTakeAtPosition and Compare).
When implementing a custom input type, it is possible to use directly the
default implementation: If the input type implements InputLength, InputIter,
InputTake and Clone, you can implement UnspecializedInput and get
a default version of InputTakeAtPosition and Compare.
For performance reasons, you might want to write a custom implementation of
InputTakeAtPosition (like the one for &[u8]).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".