[][src]Trait two_sided_vec::TwoSidedIndex

pub trait TwoSidedIndex<T>: Sized + Debug {
    type Output: ?Sized;
    pub unsafe fn get_unchecked(self, target: &TwoSidedVec<T>) -> &Self::Output;
pub unsafe fn get_unchecked_mut(
        self,
        target: &mut TwoSidedVec<T>
    ) -> &mut Self::Output;
pub fn check(&self, target: &TwoSidedVec<T>) -> bool; pub fn get(self, target: &TwoSidedVec<T>) -> Option<&Self::Output> { ... }
pub fn get_mut(
        self,
        target: &mut TwoSidedVec<T>
    ) -> Option<&mut Self::Output> { ... }
pub fn index(self, target: &TwoSidedVec<T>) -> &Self::Output { ... }
pub fn index_mut(self, target: &mut TwoSidedVec<T>) -> &mut Self::Output { ... }
pub fn invalid(self) -> ! { ... } }

Associated Types

Loading content...

Required methods

pub unsafe fn get_unchecked(self, target: &TwoSidedVec<T>) -> &Self::Output[src]

Use this as an index against the specified vec

Safety

Undefined behavior if the index is out of bounds

pub unsafe fn get_unchecked_mut(
    self,
    target: &mut TwoSidedVec<T>
) -> &mut Self::Output
[src]

Use this as an index against the specified vec

Safety

Undefined behavior if the index is out of bounds

pub fn check(&self, target: &TwoSidedVec<T>) -> bool[src]

Loading content...

Provided methods

pub fn get(self, target: &TwoSidedVec<T>) -> Option<&Self::Output>[src]

pub fn get_mut(self, target: &mut TwoSidedVec<T>) -> Option<&mut Self::Output>[src]

pub fn index(self, target: &TwoSidedVec<T>) -> &Self::Output[src]

pub fn index_mut(self, target: &mut TwoSidedVec<T>) -> &mut Self::Output[src]

pub fn invalid(self) -> ![src]

Loading content...

Implementations on Foreign Types

impl<T> TwoSidedIndex<T> for isize[src]

type Output = T

impl<T> TwoSidedIndex<T> for Range<isize>[src]

type Output = [T]

impl<T> TwoSidedIndex<T> for RangeFull[src]

type Output = [T]

impl<T> TwoSidedIndex<T> for RangeFrom<isize>[src]

type Output = [T]

impl<T> TwoSidedIndex<T> for RangeTo<isize>[src]

type Output = [T]

Loading content...

Implementors

Loading content...