[][src]Struct protocol::types::Vec

pub struct Vec<S: Integer, T: Parcel> {
    pub elements: Vec<T>,
    // some fields omitted
}

A newtype wrapping Vec<T> but with a custom length prefix type.

Fields

elements: Vec<T>

The inner Vec<T>.

Methods

impl<S: Integer, T: Parcel> Vec<S, T>[src]

pub fn new(elements: Vec<T>) -> Self[src]

Creates a new Vec from a list of elements.

Trait Implementations

impl<S: Integer, T: Parcel> Parcel for Vec<S, T>[src]

impl<S: Clone + Integer, T: Clone + Parcel> Clone for Vec<S, T>[src]

impl<S: PartialEq + Integer, T: PartialEq + Parcel> PartialEq<Vec<S, T>> for Vec<S, T>[src]

impl<S: Debug + Integer, T: Debug + Parcel> Debug for Vec<S, T>[src]

Auto Trait Implementations

impl<S, T> Send for Vec<S, T> where
    S: Send,
    T: Send

impl<S, T> Sync for Vec<S, T> where
    S: Sync,
    T: Sync

impl<S, T> Unpin for Vec<S, T> where
    S: Unpin,
    T: Unpin

impl<S, T> UnwindSafe for Vec<S, T> where
    S: UnwindSafe,
    T: UnwindSafe

impl<S, T> RefUnwindSafe for Vec<S, T> where
    S: RefUnwindSafe,
    T: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]