Index

Trait Index 

Source
pub trait Index<I> {
    type Output<'a>
       where Self: 'a;

    // Required method
    fn index(&self) -> Self::Output<'_>;
}

Required Associated Types§

Source

type Output<'a> where Self: 'a

Required Methods§

Source

fn index(&self) -> Self::Output<'_>

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§

Source§

impl<V, N> Index<UTerm> for Node<V, N>

Source§

type Output<'a> = &'a V where Self: 'a

Source§

impl<V, U, B, N> Index<UInt<U, B>> for Node<V, N>
where U: Unsigned, B: Bit, N: NotEmpty + Index<Sub1<UInt<U, B>>>, UInt<U, B>: NonZero + Sub<B1>,

Source§

type Output<'a> = <N as Index<<UInt<U, B> as Sub<B1>>::Output>>::Output<'a> where Self: 'a

Source§

impl<V, U: Unsigned, B: Bit> Index<UInt<U, B>> for Node<V>
where UInt<U, B>: NonZero,

Source§

type Output<'a> = Empty where Self: 'a