• Home
  • Raw
  • Download

Lines Matching refs:FamStructWrapper

164 pub struct FamStructWrapper<T: Default + FamStruct> {  struct
174 impl<T: Default + FamStruct> FamStructWrapper<T> { argument
216 pub fn new(num_elements: usize) -> Result<FamStructWrapper<T>, Error> { in new()
221 FamStructWrapper::<T>::mem_allocator_len(num_elements) in new()
236 Ok(FamStructWrapper { mem_allocator }) in new()
250 pub fn from_entries(entries: &[T::Entry]) -> Result<FamStructWrapper<T>, Error> { in from_entries()
251 let mut adapter = FamStructWrapper::<T>::new(entries.len())?; in from_entries()
276 FamStructWrapper { in from_raw()
344 FamStructWrapper::<T>::fam_len(self.mem_allocator.capacity()) in capacity()
361 let required_mem_allocator_len = FamStructWrapper::<T>::mem_allocator_len(desired_capacity) in reserve()
404 FamStructWrapper::<T>::mem_allocator_len(len).ok_or(Error::SizeLimitExceeded)?; in set_len()
475 impl<T: Default + FamStruct + PartialEq> PartialEq for FamStructWrapper<T> { implementation
476 fn eq(&self, other: &FamStructWrapper<T>) -> bool { in eq()
481 impl<T: Default + FamStruct> Clone for FamStructWrapper<T> { implementation
486 FamStructWrapper::<T>::mem_allocator_len(self.as_slice().len()).unwrap(); in clone()
506 let mut adapter = FamStructWrapper { mem_allocator }; in clone()
515 impl<T: Default + FamStruct> From<Vec<T>> for FamStructWrapper<T> { implementation
517 FamStructWrapper { mem_allocator: vec } in from()
522 impl<T: Default + FamStruct + Serialize> Serialize for FamStructWrapper<T> implementation
538 impl<'de, T: Default + FamStruct + Deserialize<'de>> Deserialize<'de> for FamStructWrapper<T> implementation
554 type Value = FamStructWrapper<X>; in deserialize()
560 fn visit_seq<V>(self, mut seq: V) -> Result<FamStructWrapper<X>, V::Error> in deserialize()
583 let mut result: Self::Value = FamStructWrapper::from_entries(entries.as_slice()) in deserialize()
694 type MockFamStructWrapper = FamStructWrapper<MockFamStruct>;
742 type MockFamStructWrapperU8 = FamStructWrapper<MockFamStructU8>;
1001 type MessageFamStructWrapper = FamStructWrapper<Message>; in test_ser_deser()
1045 type Message2FamStructWrapper = FamStructWrapper<Message2>; in test_ser_deser()
1062 type FooFamStructWrapper = FamStructWrapper<Foo>; in test_clone_multiple_fields()
1131 let state = FamStructWrapper::<Foo>::new(0).unwrap(); in test_bad_deserialize()
1139 …matches!(bincode::deserialize::<FamStructWrapper<Foo>>(&bytes).map_err(|boxed| *boxed), Err(bincod… in test_bad_deserialize()