pub enum Fragment<'src> {
Text {
token: Token<'src>,
},
Interpolation {
expression: Expression<'src>,
},
}
Expand description
A line fragment consisting either of…
Variants§
Text
…raw text…
Interpolation
…an interpolation containing expression
.
Fields
§
expression: Expression<'src>
Trait Implementations§
impl<'src> StructuralPartialEq for Fragment<'src>
Auto Trait Implementations§
impl<'src> Freeze for Fragment<'src>
impl<'src> RefUnwindSafe for Fragment<'src>
impl<'src> Send for Fragment<'src>
impl<'src> Sync for Fragment<'src>
impl<'src> Unpin for Fragment<'src>
impl<'src> UnwindSafe for Fragment<'src>
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