pub struct Registry { /* private fields */ }
Expand description
Core registry for conversion function lookup
The registry maps function names to actual function pointers. This enables runtime dispatch without code generation.
Implementations§
Source§impl Registry
impl Registry
Sourcepub fn register_print_conv(
&mut self,
name: impl Into<String>,
func: PrintConvFn,
)
pub fn register_print_conv( &mut self, name: impl Into<String>, func: PrintConvFn, )
Register a PrintConv function
§Arguments
name
- Function name (e.g., “exif_orientation”)func
- Function pointer
Sourcepub fn register_value_conv(
&mut self,
name: impl Into<String>,
func: ValueConvFn,
)
pub fn register_value_conv( &mut self, name: impl Into<String>, func: ValueConvFn, )
Register a ValueConv function
§Arguments
name
- Function name (e.g., “apex_shutter_speed”)func
- Function pointer
Sourcepub fn apply_print_conv(&mut self, name: &str, value: &TagValue) -> TagValue
pub fn apply_print_conv(&mut self, name: &str, value: &TagValue) -> TagValue
Sourcepub fn apply_value_conv(&mut self, name: &str, value: &TagValue) -> TagValue
pub fn apply_value_conv(&mut self, name: &str, value: &TagValue) -> TagValue
Sourcepub fn get_missing_print_conv(&self) -> Vec<String>
pub fn get_missing_print_conv(&self) -> Vec<String>
Get list of missing PrintConv implementations
Sourcepub fn get_missing_value_conv(&self) -> Vec<String>
pub fn get_missing_value_conv(&self) -> Vec<String>
Get list of missing ValueConv implementations
Sourcepub fn get_print_conv_stats(&self) -> (usize, usize, usize)
pub fn get_print_conv_stats(&self) -> (usize, usize, usize)
Get PrintConv coverage statistics
Sourcepub fn clear_missing_tracking(&mut self)
pub fn clear_missing_tracking(&mut self)
Clear all missing implementation tracking (useful for testing)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Registry
impl RefUnwindSafe for Registry
impl Send for Registry
impl Sync for Registry
impl Unpin for Registry
impl UnwindSafe for Registry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more