[−][src]Struct protobuf::repeated::RepeatedField
Methods
impl<T> RepeatedField<T>
[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]
F: Fn(&T, &T) -> Ordering,
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]
Trait Implementations
impl<T> Clear for RepeatedField<T>
[src]
impl<T: Eq> Eq for RepeatedField<T>
[src]
impl<T> Default for RepeatedField<T>
[src]
fn default() -> RepeatedField<T>
[src]
impl<T: Clone> Clone for RepeatedField<T>
[src]
fn clone(&self) -> RepeatedField<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> AsRef<[T]> for RepeatedField<T>
[src]
impl<T: PartialEq> PartialEq<RepeatedField<T>> for RepeatedField<T>
[src]
fn eq(&self, other: &RepeatedField<T>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[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?
fn into_iter(self) -> Iter<'a, T>
[src]
impl<T> DerefMut for RepeatedField<T>
[src]
impl<T: Hash> Hash for RepeatedField<T>
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T> Deref for RepeatedField<T>
[src]
impl<T> Index<usize> for RepeatedField<T>
[src]
impl<T> IndexMut<usize> for RepeatedField<T>
[src]
impl<T: Debug> Debug for RepeatedField<T>
[src]
impl<T> FromIterator<T> for RepeatedField<T>
[src]
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> RepeatedField<T>
[src]
impl<T> Borrow<[T]> for RepeatedField<T>
[src]
Auto Trait Implementations
impl<T> Send for RepeatedField<T> where
T: Send,
T: Send,
impl<T> Unpin for RepeatedField<T> where
T: Unpin,
T: Unpin,
impl<T> Sync for RepeatedField<T> where
T: Sync,
T: Sync,
impl<T> UnwindSafe for RepeatedField<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for RepeatedField<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,