[−][src]Struct protocol::types::Vec
A newtype wrapping Vec<T>
but with a custom length prefix type.
Fields
elements: Vec<T>
The inner Vec<T>
.
Implementations
impl<S: Integer, T: Parcel> Vec<S, T>
[src]
Trait Implementations
impl<S: Clone + Integer, T: Clone + Parcel> Clone for Vec<S, T>
[src]
impl<S: Debug + Integer, T: Debug + Parcel> Debug for Vec<S, T>
[src]
impl<S: Integer, T: Parcel> Parcel for Vec<S, T>
[src]
const TYPE_NAME: &'static str
[src]
fn read_field(
read: &mut dyn Read,
settings: &Settings,
hints: &mut Hints
) -> Result<Self, Error>
[src]
read: &mut dyn Read,
settings: &Settings,
hints: &mut Hints
) -> Result<Self, Error>
fn write_field(
&self,
write: &mut dyn Write,
settings: &Settings,
hints: &mut Hints
) -> Result<(), Error>
[src]
&self,
write: &mut dyn Write,
settings: &Settings,
hints: &mut Hints
) -> Result<(), Error>
fn read(read: &mut dyn Read, settings: &Settings) -> Result<Self, Error>
[src]
fn write(&self, write: &mut dyn Write, settings: &Settings) -> Result<(), Error>
[src]
fn into_stream(self, settings: &Settings) -> Result<Cursor<Vec<u8>>, Error>
[src]
fn from_raw_bytes(bytes: &[u8], settings: &Settings) -> Result<Self, Error>
[src]
fn field_from_raw_bytes(
bytes: &[u8],
settings: &Settings,
hints: &mut Hints
) -> Result<Self, Error>
[src]
bytes: &[u8],
settings: &Settings,
hints: &mut Hints
) -> Result<Self, Error>
fn raw_bytes(&self, settings: &Settings) -> Result<Vec<u8>, Error>
[src]
fn raw_bytes_field(
&self,
settings: &Settings,
hints: &mut Hints
) -> Result<Vec<u8>, Error>
[src]
&self,
settings: &Settings,
hints: &mut Hints
) -> Result<Vec<u8>, Error>
fn type_name(&self) -> &'static str
[src]
impl<S: PartialEq + Integer, T: PartialEq + Parcel> PartialEq<Vec<S, T>> for Vec<S, T>
[src]
impl<S: Integer, T: Parcel> StructuralPartialEq for Vec<S, T>
[src]
Auto Trait Implementations
impl<S, T> RefUnwindSafe for Vec<S, T> where
S: RefUnwindSafe,
T: RefUnwindSafe,
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<S, T> Send for Vec<S, T> where
S: Send,
T: Send,
S: Send,
T: Send,
impl<S, T> Sync for Vec<S, T> where
S: Sync,
T: Sync,
S: Sync,
T: Sync,
impl<S, T> Unpin for Vec<S, T> where
S: Unpin,
T: Unpin,
S: Unpin,
T: Unpin,
impl<S, T> UnwindSafe for Vec<S, T> where
S: UnwindSafe,
T: UnwindSafe,
S: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,