Trait objc2::rc::SliceId

source ·
pub trait SliceId {
    type Item: ?Sized;

    // Required methods
    fn as_slice_ref(&self) -> &[&Self::Item];
    fn as_slice_mut(&mut self) -> &mut [&Self::Item];
}
Expand description

Helper trait for functionality on slices containing Ids.

Required Associated Types§

source

type Item: ?Sized

The type of the items in the slice.

Required Methods§

source

fn as_slice_ref(&self) -> &[&Self::Item]

Convert a slice of Ids into a slice of references.

source

fn as_slice_mut(&mut self) -> &mut [&Self::Item]

Convert a mutable slice of Ids into a mutable slice of references.

Implementations on Foreign Types§

source§

impl<T: Message + ?Sized, O: Ownership> SliceId for [Id<T, O>]

§

type Item = T

source§

fn as_slice_ref(&self) -> &[&T]

source§

fn as_slice_mut(&mut self) -> &mut [&T]

Implementors§