[][src]Struct protobuf::repeated::RepeatedField

pub struct RepeatedField<T> { /* fields omitted */ }

Methods

impl<T> RepeatedField<T>[src]

pub fn len(&self) -> usize[src]

pub fn clear(&mut self)[src]

impl<T> RepeatedField<T>[src]

pub fn new() -> RepeatedField<T>[src]

pub fn from_vec(vec: Vec<T>) -> RepeatedField<T>[src]

pub fn into_vec(self) -> Vec<T>[src]

pub fn capacity(&self) -> usize[src]

pub fn as_mut_slice<'a>(&'a mut self) -> &'a mut [T][src]

pub fn slice<'a>(&'a self, start: usize, end: usize) -> &'a [T][src]

pub fn slice_mut<'a>(&'a mut self, start: usize, end: usize) -> &'a mut [T][src]

pub fn slice_from<'a>(&'a self, start: usize) -> &'a [T][src]

pub fn slice_from_mut<'a>(&'a mut self, start: usize) -> &'a mut [T][src]

pub fn slice_to<'a>(&'a self, end: usize) -> &'a [T][src]

pub fn slice_to_mut<'a>(&'a mut self, end: usize) -> &'a mut [T][src]

pub fn split_at<'a>(&'a self, mid: usize) -> (&'a [T], &'a [T])[src]

pub fn split_at_mut<'a>(&'a mut self, mid: usize) -> (&'a mut [T], &'a mut [T])[src]

pub fn tail<'a>(&'a self) -> &'a [T][src]

pub fn last<'a>(&'a self) -> Option<&'a T>[src]

pub fn last_mut<'a>(&'a mut self) -> Option<&'a mut T>[src]

pub fn init<'a>(&'a self) -> &'a [T][src]

pub fn push(&mut self, value: T)[src]

pub fn pop(&mut self) -> Option<T>[src]

pub fn insert(&mut self, index: usize, value: T)[src]

pub fn remove(&mut self, index: usize) -> T[src]

pub fn truncate(&mut self, len: usize)[src]

pub fn reverse(&mut self)[src]

pub fn into_iter(self) -> IntoIter<T>[src]

pub fn iter<'a>(&'a self) -> Iter<'a, T>[src]

pub fn iter_mut<'a>(&'a mut self) -> IterMut<'a, T>[src]

pub fn sort_by<F>(&mut self, compare: F) where
    F: Fn(&T, &T) -> Ordering
[src]

pub fn as_ptr(&self) -> *const T[src]

pub fn as_mut_ptr(&mut self) -> *mut T[src]

impl<T: Default + Clear> RepeatedField<T>[src]

pub fn push_default<'a>(&'a mut self) -> &'a mut T[src]

impl<T: Clone> RepeatedField<T>[src]

pub fn from_slice(values: &[T]) -> RepeatedField<T>[src]

impl<T: PartialEq> RepeatedField<T>[src]

pub fn contains(&self, value: &T) -> bool[src]

Trait Implementations

impl<T> Clear for RepeatedField<T>[src]

impl<T: Eq> Eq for RepeatedField<T>[src]

impl<T> Default for RepeatedField<T>[src]

impl<T: Clone> Clone for RepeatedField<T>[src]

impl<T> AsRef<[T]> for RepeatedField<T>[src]

impl<T: PartialEq> PartialEq<RepeatedField<T>> for RepeatedField<T>[src]

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

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?

impl<T> DerefMut for RepeatedField<T>[src]

impl<T: Hash> Hash for RepeatedField<T>[src]

impl<T> Deref for RepeatedField<T>[src]

type Target = [T]

The resulting type after dereferencing.

impl<T> Index<usize> for RepeatedField<T>[src]

type Output = T

The returned type after indexing.

impl<T> IndexMut<usize> for RepeatedField<T>[src]

impl<T: Debug> Debug for RepeatedField<T>[src]

impl<T> FromIterator<T> for RepeatedField<T>[src]

impl<T> Borrow<[T]> for RepeatedField<T>[src]

Auto Trait Implementations

impl<T> Send for RepeatedField<T> where
    T: Send

impl<T> Unpin for RepeatedField<T> where
    T: Unpin

impl<T> Sync for RepeatedField<T> where
    T: Sync

impl<T> UnwindSafe for RepeatedField<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for RepeatedField<T> where
    T: RefUnwindSafe

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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