Skip to main content

SayHello

Trait SayHello 

Source
pub trait SayHello {
    // Required method
    fn say_hello(&self) -> String;
}

Required Methods§

Source

fn say_hello(&self) -> String

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§