pub struct InterpolatedStringSegment {
pub literal: TokenReference,
pub expression: Expression,
}Available on crate feature
luau only.Expand description
Segments of an interpolated string, as seen in InterpolatedString.
Read the documentation for InterpolatedString for more information.
Fields§
§literal: TokenReferenceThe literal part of the segment. Guaranteed to be of TokenType::InterpolatedString
expression: ExpressionThe expression being formatted
Trait Implementations§
Source§impl Clone for InterpolatedStringSegment
impl Clone for InterpolatedStringSegment
Source§fn clone(&self) -> InterpolatedStringSegment
fn clone(&self) -> InterpolatedStringSegment
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 InterpolatedStringSegment
impl Debug for InterpolatedStringSegment
Source§impl<'de> Deserialize<'de> for InterpolatedStringSegment
impl<'de> Deserialize<'de> for InterpolatedStringSegment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for InterpolatedStringSegment
impl Display for InterpolatedStringSegment
Source§impl Node for InterpolatedStringSegment
impl Node for InterpolatedStringSegment
Source§fn start_position(&self) -> Option<Position>
fn start_position(&self) -> Option<Position>
The start position of a node. None if can’t be determined
Source§fn end_position(&self) -> Option<Position>
fn end_position(&self) -> Option<Position>
The end position of a node. None if it can’t be determined
Source§fn similar(&self, other: &Self) -> bool
fn similar(&self, other: &Self) -> bool
Whether another node of the same type is the same as this one semantically, ignoring position
impl StructuralPartialEq for InterpolatedStringSegment
Auto Trait Implementations§
impl Freeze for InterpolatedStringSegment
impl RefUnwindSafe for InterpolatedStringSegment
impl Send for InterpolatedStringSegment
impl Sync for InterpolatedStringSegment
impl Unpin for InterpolatedStringSegment
impl UnwindSafe for InterpolatedStringSegment
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