Skip to main content

ScriptSource

Trait ScriptSource 

Source
pub(crate) trait ScriptSource {
    // Required methods
    fn unminified_dir(&self) -> Option<String>;
    fn extract_bytes(&self) -> &[u8] ;
    fn rewrite_source(&mut self, source: String);
    fn url(&self) -> ServoUrl;
    fn is_external(&self) -> bool;
}

Required Methods§

Source

fn unminified_dir(&self) -> Option<String>

Source

fn extract_bytes(&self) -> &[u8]

Source

fn rewrite_source(&mut self, source: String)

Source

fn url(&self) -> ServoUrl

Source

fn is_external(&self) -> bool

Implementors§