pub enum InterpolationPart {
Text(String),
ExprSpan {
start: usize,
end: usize,
},
}Expand description
A piece of a Luau interpolated string token.
The lexer splits `hello {expr} world` into a sequence of these parts
so the parser can handle the embedded expressions.
Variants§
Trait Implementations§
Source§impl Clone for InterpolationPart
impl Clone for InterpolationPart
Source§fn clone(&self) -> InterpolationPart
fn clone(&self) -> InterpolationPart
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 InterpolationPart
impl Debug for InterpolationPart
Source§impl PartialEq for InterpolationPart
impl PartialEq for InterpolationPart
impl StructuralPartialEq for InterpolationPart
Auto Trait Implementations§
impl Freeze for InterpolationPart
impl RefUnwindSafe for InterpolationPart
impl Send for InterpolationPart
impl Sync for InterpolationPart
impl Unpin for InterpolationPart
impl UnsafeUnpin for InterpolationPart
impl UnwindSafe for InterpolationPart
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