pub struct Stack { /* private fields */ }Implementations§
Source§impl Stack
impl Stack
pub fn new() -> Stack
pub fn clear(&mut self)
pub fn peek(&self) -> Option<Match>
pub fn peek_range(&self, range: &Range<isize>) -> Option<Stack>
pub fn drop(&self) -> Option<Match>
pub fn push<T: Into<Match>>(&mut self, matcher: T) -> Option<Match>
pub fn pop(&mut self) -> Option<Match>
Trait Implementations§
Source§impl<'c> FromIterator<&'c Match> for Stack
impl<'c> FromIterator<&'c Match> for Stack
Source§impl FromIterator<Match> for Stack
impl FromIterator<Match> for Stack
Source§impl IntoIterator for &mut Stack
impl IntoIterator for &mut Stack
Auto Trait Implementations§
impl Freeze for Stack
impl RefUnwindSafe for Stack
impl Send for Stack
impl Sync for Stack
impl Unpin for Stack
impl UnwindSafe for Stack
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