• Home
  • Raw
  • Download

Lines Matching refs:SingularPtrField

20 pub struct SingularPtrField<T> {  struct
124 pub fn map<U, F>(self, f: F) -> SingularPtrField<U> in map()
128 SingularPtrField::from_option(self.into_option().map(f)) in map()
182 impl<T> SingularPtrField<T> { implementation
185 pub fn some(value: T) -> SingularPtrField<T> { in some()
186 SingularPtrField { in some()
194 pub fn none() -> SingularPtrField<T> { in none()
195 SingularPtrField { in none()
203 pub fn from_option(option: Option<T>) -> SingularPtrField<T> { in from_option()
205 Some(x) => SingularPtrField::some(x), in from_option()
206 None => SingularPtrField::none(), in from_option()
303 pub fn map<U, F>(self, f: F) -> SingularPtrField<U> in map()
307 SingularPtrField::from_option(self.into_option().map(f)) in map()
361 impl<T: Default + Clear> SingularPtrField<T> { implementation
397 impl<T> Default for SingularPtrField<T> { implementation
399 fn default() -> SingularPtrField<T> { in default()
400 SingularPtrField::none() in default()
410 impl<T> From<Option<T>> for SingularPtrField<T> { implementation
412 SingularPtrField::from_option(o) in from()
427 impl<T: Clone> Clone for SingularPtrField<T> { implementation
429 fn clone(&self) -> SingularPtrField<T> { in clone()
431 SingularPtrField::some(self.as_ref().unwrap().clone()) in clone()
433 SingularPtrField::none() in clone()
449 impl<T: fmt::Debug> fmt::Debug for SingularPtrField<T> { implementation
469 impl<T: PartialEq> PartialEq for SingularPtrField<T> { implementation
471 fn eq(&self, other: &SingularPtrField<T>) -> bool { in eq()
476 impl<T: Eq> Eq for SingularPtrField<T> {} implementation
484 impl<T: Hash> Hash for SingularPtrField<T> { implementation
499 impl<'a, T> IntoIterator for &'a SingularPtrField<T> { implementation
509 impl<T: serde::Serialize> serde::Serialize for SingularPtrField<T> { implementation
535 impl<'de, T: serde::Deserialize<'de>> serde::Deserialize<'de> for SingularPtrField<T> { implementation
540 Option::deserialize(deserializer).map(SingularPtrField::from_option) in deserialize()