[][src]Trait nom::UnspecializedInput

pub trait UnspecializedInput { }

Dummy trait used for default implementations (currently only used for InputTakeAtPosition).

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.

For performance reasons, you might want to write a custom implementation of InputTakeAtPosition (like the one for &[u8]).

Implementors

Loading content...