Skip to main content

Parameter

Trait Parameter 

pub trait Parameter {
    // Provided methods
    fn name(&self) -> String { ... }
    fn get_type(&self) -> Option<Type<'_>> { ... }
    fn location(&self) -> Option<Location<'_>> { ... }
}

Provided Methods§

fn name(&self) -> String

The name of the parameter

fn get_type(&self) -> Option<Type<'_>>

Return the type of the parameter

fn location(&self) -> Option<Location<'_>>

Location of this parameter. For instance it can be a specific register that is not following the calling convention.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§