Trait OfElementSatisfiesOnTuple

Source
pub trait OfElementSatisfiesOnTuple<ConcernedTuple, ElementConstrain: ?Sized>: TupleIndex + Sized {
    type ElementType: ElementSatisfy<ElementConstrain> + ?Sized;

    // Required methods
    fn getter_for_tuple(
        t: &ConcernedTuple,
    ) -> &dyn TupleGetIndexExt<Self, ElementType = Self::ElementType>;
    fn getter_for_tuple_mut(
        t: &mut ConcernedTuple,
    ) -> &mut dyn TupleGetIndexExt<Self, ElementType = Self::ElementType>;
}
Expand description

Trait on Index, meaning that the element at Index for ConcernedTuple satisfies ElementConstrain.

Required Associated Types§

Source

type ElementType: ElementSatisfy<ElementConstrain> + ?Sized

Required Methods§

Source

fn getter_for_tuple( t: &ConcernedTuple, ) -> &dyn TupleGetIndexExt<Self, ElementType = Self::ElementType>

Source

fn getter_for_tuple_mut( t: &mut ConcernedTuple, ) -> &mut dyn TupleGetIndexExt<Self, ElementType = Self::ElementType>

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<Index: TupleIndex, ElementConstrain: ElementConstrainMark + ?Sized, ElementType: ElementSatisfy<ElementConstrain> + ?Sized, ConcernedTuple: TupleGetIndexExt<Self, ElementType = ElementType>> OfElementSatisfiesOnTuple<ConcernedTuple, ElementConstrain> for Index

Source§

type ElementType = ElementType