cairo_lang_filesystem::db

Trait ExternalFiles

Source
pub trait ExternalFiles {
    // Provided methods
    fn ext_as_virtual(&self, external_id: InternId) -> VirtualFile { ... }
    fn try_ext_as_virtual(&self, _external_id: InternId) -> Option<VirtualFile> { ... }
}
Expand description

A trait for defining files external to the filesystem crate.

Provided Methods§

Source

fn ext_as_virtual(&self, external_id: InternId) -> VirtualFile

Returns the virtual file matching the external id.

Source

fn try_ext_as_virtual(&self, _external_id: InternId) -> Option<VirtualFile>

Returns the virtual file matching the external id if found.

Implementors§