pub fn validate_ranged_resource(
        &self,
        kind: ResourceKind,
        addr: usize,
        len: usize,
    ) -> ZxResult {
        self.validate(kind)?;
        if addr >= self.addr && (addr + len) <= (self.addr + self.len) {
            Ok(())
        } else {
            Err(ZxError::OUT_OF_RANGE)
        }
    }
/// Validate the resource is the given kind or it is the root resource,
/// and [addr, addr+len] is within the range of the resource.
Validate the resource is the given kind or it is the root resource,
and [addr, addr+len] is within the range of the resource.
Validate the resource is the given kind or it is the root resource and [ addr addr + len ] is within the range of the resource .
pub fn validate_ranged_resource(
        &self,
        kind: ResourceKind,
        addr: usize,
        len: usize,
    ) -> ZxResult {
        self.validate(kind)?;
        if addr >= self.addr && (addr + len) <= (self.addr + self.len) {
            Ok(())
        } else {
            Err(ZxError::OUT_OF_RANGE)
        }
    }
pub fn validate_ranged_resource ( & self , kind : ResourceKind , addr : usize , len : usize , ) -> ZxResult { self . validate ( kind ) ? ; if addr >= self . addr && ( addr + len ) <= ( self . addr + self . len ) { Ok ( ( ) ) } else { Err ( ZxError :: OUT_OF_RANGE ) } }
Validate the resource is the given kind or it is the root resource,
and [addr, addr+len] is within the range of the resource.
Validate the resource is the given kind or it is the root resource and [ addr addr + len ] is within the range of the resource .
&self
kind
ResourceKind
addr
usize
len
usize
&self
kind
ResourceKind
addr
usize
len
usize