Skip to main content

TypeNames

Trait TypeNames 

Source
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§

Source

fn calls(&self, name: &str, resource_type: &str) -> bool

Whether name is what a program calls resource_type.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§