Skip to main content

OffsetMapping

Trait OffsetMapping 

Source
pub trait OffsetMapping:
    Debug
    + Send
    + Sync
    + 'static {
    // Required methods
    fn original_to_transformed(&self, offset: usize) -> usize;
    fn transformed_to_original(&self, offset: usize) -> usize;
    fn clone_box(&self) -> Box<dyn OffsetMapping>;
}

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§