pub struct MaxWidth<Then>(/* private fields */);
Expand description
Runtime scanner that forces at most width
bytes to be consumed.
See: max_width
, max_width_a
.
Trait Implementations§
Source§impl<'a, Then> ScanStr<'a> for MaxWidth<Then>where
Then: ScanStr<'a>,
impl<'a, Then> ScanStr<'a> for MaxWidth<Then>where
Then: ScanStr<'a>,
Source§fn scan<I: ScanInput<'a>>(
&mut self,
s: I,
) -> Result<(Self::Output, usize), ScanError>
fn scan<I: ScanInput<'a>>( &mut self, s: I, ) -> Result<(Self::Output, usize), ScanError>
Perform a scan on the given input. Read more
Source§fn wants_leading_junk_stripped(&self) -> bool
fn wants_leading_junk_stripped(&self) -> bool
Indicates whether or not the scanner wants its input to have leading “junk”, such as whitespace, stripped. Read more
Auto Trait Implementations§
impl<Then> Freeze for MaxWidth<Then>where
Then: Freeze,
impl<Then> RefUnwindSafe for MaxWidth<Then>where
Then: RefUnwindSafe,
impl<Then> Send for MaxWidth<Then>where
Then: Send,
impl<Then> Sync for MaxWidth<Then>where
Then: Sync,
impl<Then> Unpin for MaxWidth<Then>where
Then: Unpin,
impl<Then> UnwindSafe for MaxWidth<Then>where
Then: 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