Trait themelios::lookup::Lookup

source ·
pub trait Lookup {
    // Required methods
    fn name(&self, index: u32) -> Option<String>;
    fn index(&self, name: &str) -> Option<u32>;
}
Expand description

The main lookup trait.

Required Methods§

source

fn name(&self, index: u32) -> Option<String>

Given a file id, return the corresponding filename, if any.

source

fn index(&self, name: &str) -> Option<u32>

Given a filename, return the corresponding file id, if any.

Implementors§