pub struct FramedCells {
pub cells: Vec<CellTokenStream>,
pub incomplete: Option<CellTokenStream>,
}Expand description
The recovering result of partitioning one raw stream into source cells.
Only the final source prefix can be incomplete: every confirmed boundary
before it is retained in Self::cells. This lets realtime and recovering
parsers reuse completed work while continuing to accumulate the tail.
Both parts retain their original source spans and trivia, accessible through
Spanned and CellTokenStream::to_token_stream. A cell’s span covers
its tokens; attached comments retain their own spans and can be collected
with crate::CommentTrivia::of.
Fields§
§cells: Vec<CellTokenStream>Complete cells in their original source order.
incomplete: Option<CellTokenStream>The final token prefix that still requires more input, when present.
Trait Implementations§
Source§impl Clone for FramedCells
impl Clone for FramedCells
Source§impl Debug for FramedCells
impl Debug for FramedCells
impl Eq for FramedCells
Source§impl PartialEq for FramedCells
impl PartialEq for FramedCells
impl StructuralPartialEq for FramedCells
Auto Trait Implementations§
impl Freeze for FramedCells
impl RefUnwindSafe for FramedCells
impl Send for FramedCells
impl Sync for FramedCells
impl Unpin for FramedCells
impl UnsafeUnpin for FramedCells
impl UnwindSafe for FramedCells
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