pub enum StreamItem {
Char {
ch: char,
span: SourceSpan,
},
Interpolation {
interpolation: TemplateInterpolation,
interpolation_index: usize,
span: SourceSpan,
},
Eof {
span: SourceSpan,
},
}Variants§
Implementations§
Source§impl StreamItem
impl StreamItem
pub fn kind(&self) -> &'static str
pub fn char(&self) -> Option<char>
pub fn interpolation(&self) -> Option<&TemplateInterpolation>
pub fn interpolation_index(&self) -> Option<usize>
pub fn span(&self) -> &SourceSpan
Trait Implementations§
Source§impl Clone for StreamItem
impl Clone for StreamItem
Source§fn clone(&self) -> StreamItem
fn clone(&self) -> StreamItem
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 Debug for StreamItem
impl Debug for StreamItem
Source§impl PartialEq for StreamItem
impl PartialEq for StreamItem
impl Eq for StreamItem
impl StructuralPartialEq for StreamItem
Auto Trait Implementations§
impl Freeze for StreamItem
impl RefUnwindSafe for StreamItem
impl Send for StreamItem
impl Sync for StreamItem
impl Unpin for StreamItem
impl UnsafeUnpin for StreamItem
impl UnwindSafe for StreamItem
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