Struct cubic_protocol::types::LengthProvidedArray
source · [−]pub struct LengthProvidedArray<T, S> {
pub value: Vec<T>,
/* private fields */
}
Fields
value: Vec<T>
Implementations
Trait Implementations
sourceimpl<T, S> From<LengthProvidedArray<T, S>> for Vec<T>
impl<T, S> From<LengthProvidedArray<T, S>> for Vec<T>
sourcefn from(array: LengthProvidedArray<T, S>) -> Self
fn from(array: LengthProvidedArray<T, S>) -> Self
Converts to this type from the input type.
sourceimpl<T, S> From<Vec<T, Global>> for LengthProvidedArray<T, S>
impl<T, S> From<Vec<T, Global>> for LengthProvidedArray<T, S>
sourceimpl<T: PacketReadable + Send + Sync, S: PacketReadable + USizePossible> PacketReadable for LengthProvidedArray<T, S>
impl<T: PacketReadable + Send + Sync, S: PacketReadable + USizePossible> PacketReadable for LengthProvidedArray<T, S>
fn read<'life0, 'async_trait>(
input: &'life0 mut impl 'async_trait + InputPacketBytes
) -> Pin<Box<dyn Future<Output = PacketReadableResult<Self>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
sourceimpl<T: PacketWritable + Send + Sync, S: PacketWritable + USizePossible + Send + Sync> PacketWritable for LengthProvidedArray<T, S>
impl<T: PacketWritable + Send + Sync, S: PacketWritable + USizePossible + Send + Sync> PacketWritable for LengthProvidedArray<T, S>
fn write<'life0, 'async_trait>(
self,
output: &'life0 mut impl 'async_trait + OutputPacketBytes
) -> Pin<Box<dyn Future<Output = PacketWritableResult> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl<T, S> RefUnwindSafe for LengthProvidedArray<T, S> where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, S> Send for LengthProvidedArray<T, S> where
S: Send,
T: Send,
impl<T, S> Sync for LengthProvidedArray<T, S> where
S: Sync,
T: Sync,
impl<T, S> Unpin for LengthProvidedArray<T, S> where
S: Unpin,
T: Unpin,
impl<T, S> UnwindSafe for LengthProvidedArray<T, S> where
S: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more