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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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 for LiteralType
impl PartialEq for LiteralType
impl StructuralPartialEq for LiteralType
Auto Trait Implementations§
impl Freeze for LiteralType
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