Struct parser_compose::Input
source · pub struct Input<T> { /* private fields */ }
Expand description
Input to parsers should either be a &str
or a slice (i.e. &[T]
)
If you have either of those you can convert it into an Input
by using .into()
or
Into::from()
Input
implements Deref<Target = T>
, and so inherits all of T
s methods.
Input
implements PartialEq<Rhs=T>
, so you can compare an instance of Input<T>
with a T
Implementations§
Trait Implementations§
source§impl<T> PartialEq<&[T]> for Input<&[T]>where
[T]: Eq,
impl<T> PartialEq<&[T]> for Input<&[T]>where [T]: Eq,
Auto Trait Implementations§
impl<T> RefUnwindSafe for Input<T>where T: RefUnwindSafe,
impl<T> Send for Input<T>where T: Send,
impl<T> Sync for Input<T>where T: Sync,
impl<T> Unpin for Input<T>where T: Unpin,
impl<T> UnwindSafe for Input<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more