Struct deno_graph::ModuleGraph[][src]

pub struct ModuleGraph {
    pub root: ModuleSpecifier,
    // some fields omitted
}

Fields

root: ModuleSpecifier

Implementations

Get a module from the module graph, returning None if the module is not part of the graph, or if when loading the module it errored. If any module resolution error is needed, then use the try_get() method which will return any resolution error as the error in the result.

Determine if the graph sources are valid by calling the passed locker. If the integrity of all the sources passes or if there is no locker supplied the method results in an ok, otherwise returns an error which indicates the first specifier that failed the integrity check.

Resolve a specifier from the module graph following any possible redirects returning the “final” module.

Resolve a dependency of a referring module providing the string specifier of the depdency and returning an optional fully qualified module specifier.

Retrieve a module from the module graph. If the module identified as a dependency of the graph, but resolving or loading that module resulted in an error, the error will be returned as the Err of the result. If the module is not part of the graph, or the module is missing from the graph, the result will be Ok with the option of the module.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.