Skip to main content

CheckDuplicates

Trait CheckDuplicates 

Source
pub trait CheckDuplicates {
    // Required method
    fn already_contains(&self, name: &Text) -> bool;
}
Expand description

This check can be executed at compile time if the channel names are &'static str and the compiler is smart enough.

Required Methods§

Source

fn already_contains(&self, name: &Text) -> bool

Check for duplicate channel names.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§