Lines Matching defs:value
20 /// macro, in Rust code we can never obtain a `CxxVector` by value. Instead in
164 pub fn push(self: Pin<&mut Self>, value: T)
168 let mut value = ManuallyDrop::new(value);
170 // C++ calls move constructor followed by destructor on `value`.
171 T::__push_back(self, &mut value);
184 let mut value = MaybeUninit::uninit();
186 T::__pop_back(self, &mut value);
187 value.assume_init()
341 unsafe fn __push_back(v: Pin<&mut CxxVector<Self>>, value: &mut ManuallyDrop<Self>) {
343 // never exist by value on the Rust side of the bridge.
345 let _ = value;
351 // never exist by value on the Rust side of the bridge.
371 unsafe fn __push_back(v: Pin<&mut CxxVector<$ty>>, value: &mut ManuallyDrop<$ty>) {
378 unsafe { __push_back(v, value) }