pub trait TypeNames: Send + Sync {
// Required method
fn calls(&self, name: &str, resource_type: &str) -> bool;
}Expand description
The names programs give the types of resources: what tells
whether a segment written the way a program types a type (tasks.Task)
names a resource of resource_type.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".