[][src]Struct deno::Modules

pub struct Modules { /* fields omitted */ }

A collection of JS modules.

Methods

impl Modules[src]

pub fn new() -> Modules[src]

pub fn get_id(&self, name: &str) -> Option<deno_mod>[src]

pub fn get_children(&self, id: deno_mod) -> Option<&Vec<String>>[src]

pub fn get_children2(&self, name: &str) -> Option<&Vec<String>>[src]

pub fn get_name(&self, id: deno_mod) -> Option<&String>[src]

pub fn is_registered(&self, name: &str) -> bool[src]

pub fn add_child(&mut self, parent_id: deno_mod, child_name: &str) -> bool[src]

pub fn register(&mut self, id: deno_mod, name: &str)[src]

pub fn alias(&mut self, name: &str, target: &str)[src]

pub fn is_alias(&self, name: &str) -> bool[src]

pub fn deps(&self, url: &str) -> Option<Deps>[src]

Trait Implementations

impl Default for Modules[src]

Auto Trait Implementations

impl Send for Modules

impl Sync for Modules

impl Unpin for Modules

impl UnwindSafe for Modules

impl RefUnwindSafe for Modules

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]