pub enum TemplateLiteralPart {
String(String),
Type(Box<TsValue>),
Number,
StringType,
BigInt,
Union(Vec<TsValue>),
}Expand description
模板字面量类型片段
Variants§
String(String)
字符串字面量
Type(Box<TsValue>)
类型占位符,引用另一个类型
Number
数字占位符
StringType
字符串占位符
BigInt
大整数占位符
Union(Vec<TsValue>)
联合类型占位符
Trait Implementations§
Source§impl Clone for TemplateLiteralPart
impl Clone for TemplateLiteralPart
Source§fn clone(&self) -> TemplateLiteralPart
fn clone(&self) -> TemplateLiteralPart
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 TemplateLiteralPart
impl Debug for TemplateLiteralPart
Source§impl Hash for TemplateLiteralPart
impl Hash for TemplateLiteralPart
Source§impl PartialEq for TemplateLiteralPart
impl PartialEq for TemplateLiteralPart
impl Eq for TemplateLiteralPart
impl StructuralPartialEq for TemplateLiteralPart
Auto Trait Implementations§
impl Freeze for TemplateLiteralPart
impl !RefUnwindSafe for TemplateLiteralPart
impl Send for TemplateLiteralPart
impl Sync for TemplateLiteralPart
impl Unpin for TemplateLiteralPart
impl UnsafeUnpin for TemplateLiteralPart
impl !UnwindSafe for TemplateLiteralPart
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