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 ==
.impl StructuralPartialEq for LiteralType
Auto Trait Implementations§
impl RefUnwindSafe for LiteralType
impl Send for LiteralType
impl Sync for LiteralType
impl Unpin for LiteralType
impl UnwindSafe for LiteralType
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