pub struct HereDocData {
pub content: String,
pub literal: bool,
}Expand description
Tokens produced by the kaish lexer.
The order of variants matters for logos priority. More specific patterns (like keywords) should come before more general ones (like identifiers).
Tokens that carry semantic values (strings, numbers, identifiers) include
the parsed value directly. This ensures the parser has access to actual
data, not just token types.
Here-doc content data.
literal is true when the delimiter was quoted (<<‘EOF’ or <<“EOF”),
meaning no variable expansion should occur.
Fields§
§content: String§literal: boolTrait Implementations§
Source§impl Clone for HereDocData
impl Clone for HereDocData
Source§fn clone(&self) -> HereDocData
fn clone(&self) -> HereDocData
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 HereDocData
impl Debug for HereDocData
Source§impl PartialEq for HereDocData
impl PartialEq for HereDocData
impl StructuralPartialEq for HereDocData
Auto Trait Implementations§
impl Freeze for HereDocData
impl RefUnwindSafe for HereDocData
impl Send for HereDocData
impl Sync for HereDocData
impl Unpin for HereDocData
impl UnwindSafe for HereDocData
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