pub type SlotSlice<'s, T> = &'s [(Slot, T)];

Trait Implementations§

source§

impl<'a, Block, R> BitSliceable<R> for &'a [Block]where Block: BlockType, BitSlice<'a, Block>: BitSliceable<R, Block = Block, Slice = BitSlice<'a, Block>>,

§

type Slice = BitSlice<'a, Block>

The type of the slice produced.
source§

fn bit_slice(self, range: R) -> <&'a [Block] as BitSliceable<R>>::Slice

Slices or re-slices the given object. Read more
§

impl<'a, T> CanonicalSerialize for &'a [T]where T: CanonicalSerialize,

§

fn serialize_with_mode<W>( &self, writer: W, compress: Compress ) -> Result<(), SerializationError>where W: Write,

The general serialize method that takes in customization flags.
§

fn serialized_size(&self, compress: Compress) -> usize

§

fn serialize_compressed<W>(&self, writer: W) -> Result<(), SerializationError>where W: Write,

§

fn compressed_size(&self) -> usize

§

fn serialize_uncompressed<W>(&self, writer: W) -> Result<(), SerializationError>where W: Write,

§

fn uncompressed_size(&self) -> usize

1.0.0 · source§

impl<T> Default for &[T]

source§

fn default() -> &[T]

Creates an empty slice.

§

impl<'a, T> DefaultPositioned for &'a [T]

§

type Positioner = IndexPositioner

§

impl<'a, T> FullRangeStream for &'a [T]where T: Clone + PartialEq<T>,

§

fn range(&self) -> <&'a [T] as StreamOnce>::Range

Returns the entire range of self
1.0.0 · source§

impl<'a, T> IntoIterator for &'a [T]

§

type Item = &'a T

The type of the elements being iterated over.
§

type IntoIter = Iter<'a, T>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Iter<'a, T>

Creates an iterator from a value. Read more
source§

impl<'data, T> IntoParallelIterator for &'data [T]where T: Sync + 'data,

§

type Item = &'data T

The type of item that the parallel iterator will produce.
§

type Iter = Iter<'data, T>

The parallel iterator type that will be created.
source§

fn into_par_iter(self) -> <&'data [T] as IntoParallelIterator>::Iter

Converts self into a parallel iterator. Read more
1.0.0 · source§

impl<A, B, const N: usize> PartialEq<[A; N]> for &[B]where B: PartialEq<A>,

source§

fn eq(&self, other: &[A; N]) -> bool

This method tests for self and other values to be equal, and is used by ==.
source§

fn ne(&self, other: &[A; N]) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl<T, U> PartialEq<StableVec<U>> for &[T]where T: PartialEq<U>,

§

fn eq(&self, other: &StableVec<U>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
1.46.0 · source§

impl<T, U, A> PartialEq<Vec<U, A>> for &[T]where A: Allocator, T: PartialEq<U>,

source§

fn eq(&self, other: &Vec<U, A>) -> bool

This method tests for self and other values to be equal, and is used by ==.
source§

fn ne(&self, other: &Vec<U, A>) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl<'a, T> Positioned for &'a [T]where T: Clone + PartialEq<T>,

§

fn position(&self) -> <&'a [T] as StreamOnce>::Position

Returns the current position of the stream.
§

impl<'a, T> Range for &'a [T]

§

fn len(&self) -> usize

Returns the remaining length of self. The returned length need not be the same as the number of items left in the stream.
§

fn is_empty(&self) -> bool

Returns true if the range does not contain any elements (Range::len() == 0)
§

impl<'a, T> RangeStreamOnce for &'a [T]where T: Clone + PartialEq<T>,

§

fn uncons_range( &mut self, size: usize ) -> Result<&'a [T], <<&'a [T] as StreamOnce>::Error as ParseError<<&'a [T] as StreamOnce>::Item, <&'a [T] as StreamOnce>::Range, <&'a [T] as StreamOnce>::Position>>::StreamError>

Takes size elements from the stream. Fails if the length of the stream is less than size.
§

fn uncons_while<F>( &mut self, f: F ) -> Result<&'a [T], <<&'a [T] as StreamOnce>::Error as ParseError<<&'a [T] as StreamOnce>::Item, <&'a [T] as StreamOnce>::Range, <&'a [T] as StreamOnce>::Position>>::StreamError>where F: FnMut(<&'a [T] as StreamOnce>::Item) -> bool,

Takes items from stream, testing each one with predicate. returns the range of items which passed predicate.
§

fn uncons_while1<F>( &mut self, f: F ) -> FastResult<<&'a [T] as StreamOnce>::Range, <<&'a [T] as StreamOnce>::Error as ParseError<<&'a [T] as StreamOnce>::Item, <&'a [T] as StreamOnce>::Range, <&'a [T] as StreamOnce>::Position>>::StreamError>where F: FnMut(<&'a [T] as StreamOnce>::Item) -> bool,

Takes items from stream, testing each one with predicate returns a range of at least one items which passed predicate. Read more
§

fn distance(&self, end: &&'a [T]) -> usize

Returns the distance between self and end. The returned usize must be so that Read more
§

impl<'a, T> Resetable for &'a [T]

§

type Checkpoint = &'a [T]

§

fn checkpoint(&self) -> &'a [T]

§

fn reset(&mut self, checkpoint: &'a [T])

§

impl<'a, T> StreamOnce for &'a [T]where T: Clone + PartialEq<T>,

§

type Item = T

The type of items which is yielded from this stream.
§

type Range = &'a [T]

The type of a range of items yielded from this stream. Types which do not a have a way of yielding ranges of items should just use the Self::Item for this type.
§

type Position = PointerOffset

Type which represents the position in a stream. Ord is required to allow parsers to determine which of two positions are further ahead.
§

type Error = UnexpectedParse

§

fn uncons( &mut self ) -> Result<T, <<&'a [T] as StreamOnce>::Error as ParseError<<&'a [T] as StreamOnce>::Item, <&'a [T] as StreamOnce>::Range, <&'a [T] as StreamOnce>::Position>>::StreamError>

Takes a stream and removes its first item, yielding the item and the rest of the elements. Returns Err if no element could be retrieved.
§

fn is_partial(&self) -> bool

Returns true if this stream only contains partial input. Read more