pub struct Node;Expand description
Node.js: the only runtime whose install command follows the packager.
PHP: Utopia\Detector\Detection\Runtime\Node.
Trait Implementations§
impl Copy for Node
impl Eq for Node
Source§impl Runtime for Node
impl Runtime for Node
Source§fn file_extensions(&self) -> &[&str]
fn file_extensions(&self) -> &[&str]
The extensions of its source files, such as
ts. Read moreSource§fn files(&self) -> &[&str]
fn files(&self) -> &[&str]
The file names that reveal it, such as
package-lock.json. Read moreSource§fn commands(&self, packager: &str) -> &str
fn commands(&self, packager: &str) -> &str
The command that installs dependencies and builds, for
packager
(npm, pnpm, yarn; anything else, or empty, as pnpm where it
matters). Read moreSource§fn entrypoint(&self) -> &str
fn entrypoint(&self) -> &str
The default entrypoint file, such as
index.js. Read moreimpl StructuralPartialEq for Node
Auto Trait Implementations§
impl Forget for Node
impl Freeze for Node
impl Move for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.