pub trait ValueInput<'src>: Input<'src> {
// Required method
unsafe fn next(
cache: &mut Self::Cache,
cursor: &mut Self::Cursor,
) -> Option<Self::Token>;
}Expand description
Implemented by inputs that can have produce tokens by value.
Required Methods§
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.
Implementations on Foreign Types§
Source§impl<'src> ValueInput<'src> for &'src str
impl<'src> ValueInput<'src> for &'src str
Source§impl<'src, T> ValueInput<'src> for &'src [T]where
T: Clone,
impl<'src, T> ValueInput<'src> for &'src [T]where
T: Clone,
Implementors§
impl<'a, I> ValueInput<'a> for Stream<I>
impl<'src> ValueInput<'src> for &'src Graphemes
impl<'src, R> ValueInput<'src> for IoInput<R>
Available on crate feature
std only.