pub struct StartOfNextLine<M> { /* private fields */ }
Expand description
Implementations§
Source§impl<M> StartOfNextLine<M>
impl<M> StartOfNextLine<M>
Sourcepub const fn new(inner: M) -> Self
pub const fn new(inner: M) -> Self
Create a new StartOfNextLine
matcher.
Trait Implementations§
Source§impl<M: Clone> Clone for StartOfNextLine<M>
impl<M: Clone> Clone for StartOfNextLine<M>
Source§fn clone(&self) -> StartOfNextLine<M>
fn clone(&self) -> StartOfNextLine<M>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<M: Debug> Debug for StartOfNextLine<M>
impl<M: Debug> Debug for StartOfNextLine<M>
Source§impl<M: Matcher> Matcher for StartOfNextLine<M>
impl<M: Matcher> Matcher for StartOfNextLine<M>
Source§fn matches_event(&mut self, event: &Event<'_>) -> bool
fn matches_event(&mut self, event: &Event<'_>) -> bool
Evaluate this predicate against an event from an
Event
stream.Source§fn first_match<'src, I, E>(self, events: I) -> Option<usize>
fn first_match<'src, I, E>(self, events: I) -> Option<usize>
Find the index of the first
Event
which is matched by this
predicate.Source§fn then_start_of_next_line(self) -> StartOfNextLine<Self>where
Self: Sized,
fn then_start_of_next_line(self) -> StartOfNextLine<Self>where
Self: Sized,
Returns a
Matcher
which will wait until self
matches, then return
true
at the start of the next top-level element.Source§fn falling_edge(self) -> FallingEdge<Self>where
Self: Sized,
fn falling_edge(self) -> FallingEdge<Self>where
Self: Sized,
Source§impl<M: PartialEq> PartialEq for StartOfNextLine<M>
impl<M: PartialEq> PartialEq for StartOfNextLine<M>
impl<M> StructuralPartialEq for StartOfNextLine<M>
Auto Trait Implementations§
impl<M> Freeze for StartOfNextLine<M>where
M: Freeze,
impl<M> RefUnwindSafe for StartOfNextLine<M>where
M: RefUnwindSafe,
impl<M> Send for StartOfNextLine<M>where
M: Send,
impl<M> Sync for StartOfNextLine<M>where
M: Sync,
impl<M> Unpin for StartOfNextLine<M>where
M: Unpin,
impl<M> UnwindSafe for StartOfNextLine<M>where
M: 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