Trait deno_graph::source::Locker[][src]

pub trait Locker: Debug {
    fn check_or_insert(
        &mut self,
        specifier: &ModuleSpecifier,
        source: &str
    ) -> bool;
fn get_checksum(&self, content: &str) -> String; fn get_filename(&self) -> Option<String> { ... } }
Expand description

A trait which allows the module graph to check if a source is “valid” as well as a way to get the checksum of a source for displaying when printing a module graph.

Required methods

Provided methods

Implementors