pub trait RegionPredicate<Os>where
Os: VmiOs,{
// Required method
fn matches(&self, region: &Os::Region<'_>) -> Result<bool, VmiError>;
}Expand description
Predicate used by VmiOsProcessExt::find_region.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<Os> RegionPredicate<Os> for &Stringwhere
Os: VmiOs,
impl<Os> RegionPredicate<Os> for &Stringwhere
Os: VmiOs,
Source§fn matches(&self, region: &Os::Region<'_>) -> Result<bool, VmiError>
fn matches(&self, region: &Os::Region<'_>) -> Result<bool, VmiError>
Matches a mapped region whose backing file path equals self
case-insensitively.
Private regions and mapped regions without a backing path
always return Ok(false). Regions do not carry a name of their
own, so the backing-file path is the only string identifier a
&str predicate can sensibly compare against.
Source§impl<Os> RegionPredicate<Os> for &strwhere
Os: VmiOs,
impl<Os> RegionPredicate<Os> for &strwhere
Os: VmiOs,
Source§fn matches(&self, region: &Os::Region<'_>) -> Result<bool, VmiError>
fn matches(&self, region: &Os::Region<'_>) -> Result<bool, VmiError>
Matches a mapped region whose backing file path equals self
case-insensitively.
Private regions and mapped regions without a backing path
always return Ok(false). Regions do not carry a name of their
own, so the backing-file path is the only string identifier a
&str predicate can sensibly compare against.