Skip to main content

Name

Trait Name 

Source
pub trait Name {
    // Required methods
    fn set_name(self) -> Self;
    fn get_name(&self) -> String;
}

Required Methods§

Source

fn set_name(self) -> Self

Source

fn get_name(&self) -> String

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§