[go: up one dir, main page]

Trait Op

Source
pub trait Op: Copy {
    // Required method
    fn oper() -> Self;
}
Expand description

Trait implemented by types representing operators.

Required Methods§

Source

fn oper() -> Self

Returns the structure that identifies the operator.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§