Enum camo_typescript::LiteralType
source · pub enum LiteralType {
String(String),
}
Expand description
A literal type.
Example:
type Tag = "Tag";
See: https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#literal-types
Variants§
Trait Implementations§
source§impl Clone for LiteralType
impl Clone for LiteralType
source§fn clone(&self) -> LiteralType
fn clone(&self) -> LiteralType
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 LiteralType
impl Debug for LiteralType
source§impl Display for LiteralType
impl Display for LiteralType
source§impl From<LiteralType> for Type
impl From<LiteralType> for Type
source§fn from(value: LiteralType) -> Self
fn from(value: LiteralType) -> Self
Converts to this type from the input type.
source§impl PartialEq<LiteralType> for LiteralType
impl PartialEq<LiteralType> for LiteralType
source§fn eq(&self, other: &LiteralType) -> bool
fn eq(&self, other: &LiteralType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.