pub struct CursorVecSink<'a> { /* private fields */ }
Expand description
This is a very basic CursorSink, that simply collects all tokens into a Vec. Each time CursorSink::append() is called the given Cursor will be pushed into the Vec. Useful for doing other manipulation of the Cursors if they need to be buffered for some reason.
It has some very minor smarts: it will insert a whitespace Token where two adjacent tokens require some separator, but does not perform any other interesting operations on the cursors (e.g. minification).
Implementations§
Trait Implementations§
Source§impl<'a> Clone for CursorVecSink<'a>
impl<'a> Clone for CursorVecSink<'a>
Source§fn clone(&self) -> CursorVecSink<'a>
fn clone(&self) -> CursorVecSink<'a>
Returns a duplicate 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 CursorSink for CursorVecSink<'_>
impl CursorSink for CursorVecSink<'_>
Source§impl<'a> Debug for CursorVecSink<'a>
impl<'a> Debug for CursorVecSink<'a>
Source§impl<'a> Hash for CursorVecSink<'a>
impl<'a> Hash for CursorVecSink<'a>
Source§impl<'a> Ord for CursorVecSink<'a>
impl<'a> Ord for CursorVecSink<'a>
Source§fn cmp(&self, other: &CursorVecSink<'a>) -> Ordering
fn cmp(&self, other: &CursorVecSink<'a>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialEq for CursorVecSink<'a>
impl<'a> PartialEq for CursorVecSink<'a>
Source§impl<'a> PartialOrd for CursorVecSink<'a>
impl<'a> PartialOrd for CursorVecSink<'a>
impl<'a> Eq for CursorVecSink<'a>
impl<'a> StructuralPartialEq for CursorVecSink<'a>
Auto Trait Implementations§
impl<'a> Freeze for CursorVecSink<'a>
impl<'a> !RefUnwindSafe for CursorVecSink<'a>
impl<'a> !Send for CursorVecSink<'a>
impl<'a> !Sync for CursorVecSink<'a>
impl<'a> Unpin for CursorVecSink<'a>
impl<'a> !UnwindSafe for CursorVecSink<'a>
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