pub struct Array<'a, L, T> { /* private fields */ }
Expand description
Inflated version of a length-specified array with zero-copy iterator access.
Implementations§
Trait Implementations§
Source§impl<'a, L: DataType, T: DataType> DataType for Array<'a, L, T>where
T::BuilderForEncode: 'a,
T::BuilderForStruct<'a>: 'a,
impl<'a, L: DataType, T: DataType> DataType for Array<'a, L, T>where
T::BuilderForEncode: 'a,
T::BuilderForStruct<'a>: 'a,
const META: StructFieldMeta
Source§type BuilderForEncode = &'a [<T as DataType>::BuilderForEncode]
type BuilderForEncode = &'a [<T as DataType>::BuilderForEncode]
Always a reference
type BuilderForStruct<'unused> = &'a [<T as DataType>::BuilderForStruct<'a>]
type DecodeLifetime<'__next_lifetime> = Array<'__next_lifetime, L, <T as DataType>::DecodeLifetime<'__next_lifetime>>
fn decode<'__next_lifetime>( buf: &mut &'__next_lifetime [u8], ) -> Result<Self::DecodeLifetime<'__next_lifetime>, ParseError>
fn encode<'__buffer_lifetime, '__value_lifetime>( buf: &mut BufWriter<'__buffer_lifetime>, value: &'__value_lifetime Self::BuilderForEncode, )
fn encode_usize<'a>(buf: &mut BufWriter<'a>, value: usize)
fn decode_usize(buf: &mut &[u8]) -> Result<usize, ParseError>
Source§impl<'a, L, T: DataType> IntoIterator for &Array<'a, L, T>
impl<'a, L, T: DataType> IntoIterator for &Array<'a, L, T>
Source§impl<'a, L, T: DataType> IntoIterator for Array<'a, L, T>
impl<'a, L, T: DataType> IntoIterator for Array<'a, L, T>
impl<'a, L: Copy, T: Copy> Copy for Array<'a, L, T>
Auto Trait Implementations§
impl<'a, L, T> Freeze for Array<'a, L, T>
impl<'a, L, T> RefUnwindSafe for Array<'a, L, T>where
L: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, L, T> Send for Array<'a, L, T>
impl<'a, L, T> Sync for Array<'a, L, T>
impl<'a, L, T> Unpin for Array<'a, L, T>
impl<'a, L, T> UnwindSafe for Array<'a, L, T>where
L: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more