Skip to main content

Index

Trait Index 

Source
pub trait Index {
    type ReturnOperand;

    // Required method
    fn index(&self) -> Self::ReturnOperand;
}

Required Associated Types§

Required Methods§

Source

fn index(&self) -> Self::ReturnOperand

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§