pub enum TsDeclaration {
Interface(TsInterface),
TypeAlias(TsTypeAlias),
Enum(TsEnum),
Function(TsFunction),
Class(TsClass),
Const(String, Option<TsType>, TsExpr),
Let(String, Option<TsType>, TsExpr),
ReExport(String),
}Expand description
A top-level TypeScript declaration.
Variants§
Interface(TsInterface)
TypeAlias(TsTypeAlias)
Enum(TsEnum)
Function(TsFunction)
Class(TsClass)
Const(String, Option<TsType>, TsExpr)
Let(String, Option<TsType>, TsExpr)
ReExport(String)
Re-export from another module.
Trait Implementations§
Source§impl Clone for TsDeclaration
impl Clone for TsDeclaration
Source§fn clone(&self) -> TsDeclaration
fn clone(&self) -> TsDeclaration
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 TsDeclaration
impl Debug for TsDeclaration
Auto Trait Implementations§
impl Freeze for TsDeclaration
impl RefUnwindSafe for TsDeclaration
impl Send for TsDeclaration
impl Sync for TsDeclaration
impl Unpin for TsDeclaration
impl UnsafeUnpin for TsDeclaration
impl UnwindSafe for TsDeclaration
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