pub enum TypeLiteral {
String(StringLiteralNode),
Number(NumericLiteralNode),
BigInt(BigIntLiteralNode),
Boolean(BooleanLiteralNode),
Null(NullLiteralNode),
Unary {
operator: UnaryOperator,
operand: Box<Ty>,
},
}Variants§
String(StringLiteralNode)
Number(NumericLiteralNode)
BigInt(BigIntLiteralNode)
Boolean(BooleanLiteralNode)
Null(NullLiteralNode)
Unary
Trait Implementations§
Source§impl Clone for TypeLiteral
impl Clone for TypeLiteral
Source§fn clone(&self) -> TypeLiteral
fn clone(&self) -> TypeLiteral
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TypeLiteral
impl Debug for TypeLiteral
impl Eq for TypeLiteral
Source§impl PartialEq for TypeLiteral
impl PartialEq for TypeLiteral
impl StructuralPartialEq for TypeLiteral
Auto Trait Implementations§
impl Freeze for TypeLiteral
impl RefUnwindSafe for TypeLiteral
impl Send for TypeLiteral
impl Sync for TypeLiteral
impl Unpin for TypeLiteral
impl UnsafeUnpin for TypeLiteral
impl UnwindSafe for TypeLiteral
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