Struct full_moon::ast::types::InterpolatedStringSegment
source · pub struct InterpolatedStringSegment {
pub literal: TokenReference,
pub expression: Expression,
}
Available on crate feature
roblox
only.Expand description
Segments of an interpolated string, as seen in InterpolatedString
.
Read the documentation for InterpolatedString
for more information.
Fields§
§literal: TokenReference
The literal part of the segment. Guaranteed to be of TokenType::InterpolatedString
expression: Expression
The 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 copy 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
source§impl PartialEq for InterpolatedStringSegment
impl PartialEq for InterpolatedStringSegment
source§fn eq(&self, other: &InterpolatedStringSegment) -> bool
fn eq(&self, other: &InterpolatedStringSegment) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InterpolatedStringSegment
Auto Trait Implementations§
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