Trait rocket::mtls::x509::der_parser::asn1_rs::nom::UnspecializedInput

source ·
pub trait UnspecializedInput { }
Available on crate feature mtls 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§