pub enum LuauString {
SingleQuotes(SmolStr),
DoubleQuotes(SmolStr),
Backticks(SmolStr),
MultiLine(SmolStr),
}Expand description
A Luau string. The stored string will include the quotes/double quotes/backticks.
The only reason the different types actually exist is to allow the user to easily know which one is used without needing to check the actual string.
Variants§
SingleQuotes(SmolStr)
'single quotes'DoubleQuotes(SmolStr)
"double quotes"Backticks(SmolStr)
`backticks`MultiLine(SmolStr)
[[ multi line ]]
[[
multi line
]]
[==[
multi line
]==]Trait Implementations§
Source§impl Clone for LuauString
impl Clone for LuauString
Source§fn clone(&self) -> LuauString
fn clone(&self) -> LuauString
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 LuauString
impl Debug for LuauString
Source§impl From<LuauString> for Literal
impl From<LuauString> for Literal
Source§fn from(value: LuauString) -> Literal
fn from(value: LuauString) -> Literal
Converts to this type from the input type.
Source§impl Hash for LuauString
impl Hash for LuauString
Source§impl Lexable for LuauString
impl Lexable for LuauString
Source§impl Ord for LuauString
impl Ord for LuauString
Source§fn cmp(&self, other: &LuauString) -> Ordering
fn cmp(&self, other: &LuauString) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LuauString
impl PartialEq for LuauString
Source§impl PartialOrd for LuauString
impl PartialOrd for LuauString
impl Eq for LuauString
impl StructuralPartialEq for LuauString
Auto Trait Implementations§
impl Freeze for LuauString
impl RefUnwindSafe for LuauString
impl Send for LuauString
impl Sync for LuauString
impl Unpin for LuauString
impl UnwindSafe for LuauString
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