PuiVecIndex

Trait PuiVecIndex 

Source
pub trait PuiVecIndex<I>: Seal {
    type SliceIndex;

    // Required method
    fn contained_in<T>(&self, vec: &PuiVec<T, I>) -> bool;
}
Expand description

A type that represents an index/range into a PuiVec

Required Associated Types§

Source

type SliceIndex

The underlying index/range type

Required Methods§

Source

fn contained_in<T>(&self, vec: &PuiVec<T, I>) -> bool

Is self contained in PuiVec

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.

Implementations on Foreign Types§

Source§

impl<I> PuiVecIndex<I> for usize

Source§

type SliceIndex = usize

Source§

fn contained_in<T>(&self, vec: &PuiVec<T, I>) -> bool

Source§

impl<I> PuiVecIndex<I> for Range<usize>

Source§

type SliceIndex = Range<usize>

Source§

fn contained_in<T>(&self, vec: &PuiVec<T, I>) -> bool

Source§

impl<I> PuiVecIndex<I> for RangeFrom<usize>

Source§

impl<I> PuiVecIndex<I> for RangeFull

Source§

type SliceIndex = RangeFull

Source§

fn contained_in<T>(&self, vec: &PuiVec<T, I>) -> bool

Source§

impl<I> PuiVecIndex<I> for RangeInclusive<usize>

Source§

impl<I> PuiVecIndex<I> for RangeTo<usize>

Source§

type SliceIndex = RangeTo<usize>

Source§

fn contained_in<T>(&self, vec: &PuiVec<T, I>) -> bool

Source§

impl<I> PuiVecIndex<I> for RangeToInclusive<usize>

Source§

impl<I: OneShotIdentifier> PuiVecIndex<I> for Range<Id<I::Token>>

Available on crate feature pui only.
Source§

type SliceIndex = Range<usize>

Source§

fn contained_in<T>(&self, vec: &PuiVec<T, I>) -> bool

Source§

impl<I: OneShotIdentifier> PuiVecIndex<I> for RangeFrom<Id<I::Token>>

Available on crate feature pui only.
Source§

impl<I: OneShotIdentifier> PuiVecIndex<I> for RangeInclusive<Id<I::Token>>

Available on crate feature pui only.
Source§

impl<I: OneShotIdentifier> PuiVecIndex<I> for RangeTo<Id<I::Token>>

Available on crate feature pui only.
Source§

type SliceIndex = RangeTo<usize>

Source§

fn contained_in<T>(&self, vec: &PuiVec<T, I>) -> bool

Source§

impl<I: OneShotIdentifier> PuiVecIndex<I> for RangeToInclusive<Id<I::Token>>

Available on crate feature pui only.
Source§

impl<Pi: ?Sized + PuiVecIndex<I>, I> PuiVecIndex<I> for &Pi

Source§

type SliceIndex = <Pi as PuiVecIndex<I>>::SliceIndex

Source§

fn contained_in<T>(&self, vec: &PuiVec<T, I>) -> bool

Source§

impl<Pi: ?Sized + PuiVecIndex<I>, I> PuiVecIndex<I> for &mut Pi

Source§

type SliceIndex = <Pi as PuiVecIndex<I>>::SliceIndex

Source§

fn contained_in<T>(&self, vec: &PuiVec<T, I>) -> bool

Implementors§

Source§

impl<I: OneShotIdentifier> PuiVecIndex<I> for Id<I::Token>

Available on crate feature pui only.