pub struct NodeProject { /* private fields */ }Expand description
A temporary Node.js/TypeScript project for testing.
Implementations§
Source§impl NodeProject
impl NodeProject
Sourcepub fn new(name: &str) -> Result<Self, TestProjectError>
pub fn new(name: &str) -> Result<Self, TestProjectError>
Create a new minimal Node/TypeScript project.
Runs npm install typescript so typescript-language-server can find tsserver.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NodeProject
impl RefUnwindSafe for NodeProject
impl Send for NodeProject
impl Sync for NodeProject
impl Unpin for NodeProject
impl UnsafeUnpin for NodeProject
impl UnwindSafe for NodeProject
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