pub trait DriverMem {
// Required method
fn translate<'a>(&'a self, driver: DriverRange) -> Option<DeviceRange<'a>>;
}
Expand description
Provides interface for converting from a DriverRange
to a DeviceRange
.
Required Methods§
Sourcefn translate<'a>(&'a self, driver: DriverRange) -> Option<DeviceRange<'a>>
fn translate<'a>(&'a self, driver: DriverRange) -> Option<DeviceRange<'a>>
Attempt to turn a DriverRange
into a DeviceRange
.
May return None
if DriverRange
does not represent valid driver memory, otherwise should
return the corresponding DeviceRange
. DriverMem
is borrowed for lifetime of the
returned DeviceRange
ensuring that any returned ranges do not outlive the backing
memory.