Skip to main content

AddressMap

Trait AddressMap 

Source
pub trait AddressMap {
    // Required methods
    fn to_inner(&self, outer: u32) -> Option<u32>;
    fn to_outer(&mut self, inner: u32) -> Result<u32>;
}
Expand description

How the addresses of a network below a RemapLinks read above it. Only addresses of links are mapped: the null link is the null link on both sides.

Required Methods§

Source

fn to_inner(&self, outer: u32) -> Option<u32>

The address below of outer; None when it is no address of the network below.

Source

fn to_outer(&mut self, inner: u32) -> Result<u32>

The address above of inner, given one when it has none yet.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§