UnspecializedInput

Trait UnspecializedInput 

pub trait UnspecializedInput { }
Available on (crate features rustls or boring or acme) and 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]).

Implementorsยง