Retrieves the field `field_name` of a static class.
(
&self,
class_name: &str,
field_name: &str,
)
| 948 | |
| 949 | /// Retrieves the field `field_name` of a static class. |
| 950 | pub fn static_class_field( |
| 951 | &self, |
| 952 | class_name: &str, |
| 953 | field_name: &str, |
| 954 | ) -> errors::Result<Instance> { |
| 955 | debug(&format!( |
| 956 | "Retrieving field {} of static class {}", |
| 957 | field_name, class_name |
| 958 | )); |
| 959 | let i = self.static_class(class_name)?; |
| 960 | self.field(&i, field_name) |
| 961 | } |
| 962 | |
| 963 | /// Invokes the method `method_name` of a created `Instance`, passing an array of `InvocationArg`s. |
| 964 | /// It returns a Result of `InstanceReceiver` that may be used to get an underlying `Receiver<Instance>`. The result of the invocation will come via this Receiver. |
no test coverage detected