fn validate_expose_target(
        &mut self,
        target: &Option<fsys::Ref>,
        decl_type: &str,
        field_name: &str,
    ) {
        match target.as_ref() {
            Some(fsys::Ref::Realm(_)) => {}
            Some(_) => {
                self.errors.push(Error::invalid_field(decl_type, field_name));
            }
            None => {
                self.errors.push(Error::missing_field(decl_type, field_name));
            }
        };
    }
/// Validates that the expose target is to `realm` or `framework`.
Validates that the expose target is to `realm` or `framework`.
Validates that the expose target is to ` realm ` or ` framework ` .
fn validate_expose_target(
        &mut self,
        target: &Option<fsys::Ref>,
        decl_type: &str,
        field_name: &str,
    ) {
        match target.as_ref() {
            Some(fsys::Ref::Realm(_)) => {}
            Some(_) => {
                self.errors.push(Error::invalid_field(decl_type, field_name));
            }
            None => {
                self.errors.push(Error::missing_field(decl_type, field_name));
            }
        };
    }
fn validate_expose_target ( & mut self , target : & Option < fsys :: Ref > , decl_type : & str , field_name : & str , ) { match target . as_ref ( ) { Some ( fsys :: Ref :: Realm ( _ ) ) => { } Some ( _ ) => { self . errors . push ( Error :: invalid_field ( decl_type , field_name ) ) ; } None => { self . errors . push ( Error :: missing_field ( decl_type , field_name ) ) ; } } ; }
Validates that the expose target is to `realm` or `framework`.
Validates that the expose target is to ` realm ` or ` framework ` .
&mut self
target
&Option<fsys::Ref>
decl_type
&str
field_name
&str
&mut self
target
&Option<fsys::Ref>
decl_type
&str
field_name
&str