Struct protobuf::singular::SingularPtrField
[−]
[src]
pub struct SingularPtrField<T> { /* fields omitted */ }
Methods
impl<T> SingularPtrField<T>
[src]
pub fn some(value: T) -> SingularPtrField<T>
[src]
pub fn none() -> SingularPtrField<T>
[src]
pub fn from_option(option: Option<T>) -> SingularPtrField<T>
[src]
pub fn is_some(&self) -> bool
[src]
pub fn is_none(&self) -> bool
[src]
pub fn into_option(self) -> Option<T>
[src]
pub fn as_ref<'a>(&'a self) -> Option<&'a T>
[src]
pub fn as_mut<'a>(&'a mut self) -> Option<&'a mut T>
[src]
pub fn get_ref<'a>(&'a self) -> &'a T
[src]
pub fn get_mut_ref<'a>(&'a mut self) -> &'a mut T
[src]
pub fn unwrap(self) -> T
[src]
pub fn unwrap_or(self, def: T) -> T
[src]
pub fn unwrap_or_else<F>(self, f: F) -> T where
F: FnOnce() -> T,
[src]
F: FnOnce() -> T,
pub fn map<U, F>(self, f: F) -> SingularPtrField<U> where
F: FnOnce(T) -> U,
[src]
F: FnOnce(T) -> U,
pub fn iter<'a>(&'a self) -> IntoIter<&'a T>
[src]
pub fn mut_iter<'a>(&'a mut self) -> IntoIter<&'a mut T>
[src]
pub fn take(&mut self) -> Option<T>
[src]
pub fn clear(&mut self)
[src]
impl<T: Default + Clear> SingularPtrField<T>
[src]
pub fn unwrap_or_default(self) -> T
[src]
pub fn set_default<'a>(&'a mut self) -> &'a mut T
[src]
Trait Implementations
impl<T> Default for SingularPtrField<T>
[src]
fn default() -> SingularPtrField<T>
[src]
Returns the "default value" for a type. Read more
impl<T: Clone> Clone for SingularPtrField<T>
[src]
fn clone(&self) -> SingularPtrField<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Debug> Debug for SingularPtrField<T>
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T: PartialEq> PartialEq for SingularPtrField<T>
[src]
fn eq(&self, other: &SingularPtrField<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<T: Eq> Eq for SingularPtrField<T>
[src]
impl<T: Hash> Hash for SingularPtrField<T>
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<'a, T> IntoIterator for &'a SingularPtrField<T>
[src]
Auto Trait Implementations
impl<T> Send for SingularPtrField<T> where
T: Send,
T: Send,
impl<T> Sync for SingularPtrField<T> where
T: Sync,
T: Sync,