Trait FieldIdMapper

Source
pub trait FieldIdMapper {
    // Required methods
    fn id(&self, name: &str) -> Option<FieldId>;
    fn name(&self, id: FieldId) -> Option<&str>;
}
Expand description

Trait for objects that can map the name of a field to its FieldId.

Required Methods§

Source

fn id(&self, name: &str) -> Option<FieldId>

Attempts to map the passed name to its FieldId.

None if the field with this name was not found.

Source

fn name(&self, id: FieldId) -> Option<&str>

Implementations on Foreign Types§

Source§

impl<T> FieldIdMapper for &T
where T: FieldIdMapper,

Source§

fn id(&self, name: &str) -> Option<FieldId>

Source§

fn name(&self, id: FieldId) -> Option<&str>

Implementors§