/third_party/rust/crates/cxx/src/ |
D | cxx_vector.rs | 12 use core::pin::Pin; 69 pub fn index_mut(self: Pin<&mut Self>, pos: usize) -> Option<Pin<&mut T>> { in index_mut() 106 pub unsafe fn index_unchecked_mut(self: Pin<&mut Self>, pos: usize) -> Pin<&mut T> { in index_unchecked_mut() 109 Pin::new_unchecked(&mut *ptr) in index_unchecked_mut() 136 pub fn as_mut_slice(self: Pin<&mut Self>) -> &mut [T] in as_mut_slice() 155 pub fn iter_mut(self: Pin<&mut Self>) -> IterMut<T> { in iter_mut() 164 pub fn push(self: Pin<&mut Self>, value: T) in push() 177 pub fn pop(self: Pin<&mut Self>) -> Option<T> in pop() 246 v: Pin<&'a mut CxxVector<T>>, 250 impl<'a, T> IntoIterator for Pin<&'a mut CxxVector<T>> implementation [all …]
|
D | cxx_string.rs | 12 use core::pin::Pin; 26 fn string_clear(this: Pin<&mut CxxString>); in string_clear() 28 fn string_reserve_total(this: Pin<&mut CxxString>, new_cap: usize); in string_reserve_total() 30 fn string_push(this: Pin<&mut CxxString>, ptr: *const u8, len: usize); in string_push() 167 pub fn clear(self: Pin<&mut Self>) { in clear() 191 pub fn reserve(self: Pin<&mut Self>, additional: usize) { in reserve() 200 pub fn push_str(self: Pin<&mut Self>, s: &str) { in push_str() 205 pub fn push_bytes(self: Pin<&mut Self>, bytes: &[u8]) { in push_bytes() 260 impl fmt::Write for Pin<&mut CxxString> { implementation 268 impl std::io::Write for Pin<&mut CxxString> { implementation [all …]
|
D | unique_ptr.rs | 11 use core::pin::Pin; 64 pub fn as_mut(&mut self) -> Option<Pin<&mut T>> { in as_mut() 67 Some(Pin::new_unchecked(mut_reference)) in as_mut() 77 pub fn pin_mut(&mut self) -> Pin<&mut T> { in pin_mut() 151 Some(target) => Pin::into_inner(target), in deref_mut()
|
/third_party/rust/crates/pin-utils/src/ |
D | projection.rs | 44 self: $crate::core_reexport::pin::Pin<&'__a mut Self> 45 ) -> $crate::core_reexport::pin::Pin<&'__a mut $t> { 47 $crate::core_reexport::pin::Pin::map_unchecked_mut( 93 self: $crate::core_reexport::pin::Pin<&'__a mut Self> 96 &mut $crate::core_reexport::pin::Pin::get_unchecked_mut(self).$f
|
D | stack_pin.rs | 22 $crate::core_reexport::pin::Pin::new_unchecked(&mut $x)
|
/third_party/rust/crates/nix/src/sys/ |
D | aio.rs | 34 pin::Pin, 123 fn aio_return(mut self: Pin<&mut Self>) -> Result<usize> { in aio_return() 132 fn cancel(mut self: Pin<&mut Self>) -> Result<AioCancelStat> { in cancel() 160 fn error(self: Pin<&mut Self>) -> Result<()> { in error() 174 fn set_in_progress(mut self: Pin<&mut Self>) { in set_in_progress() 226 fn aio_return(self: Pin<&mut Self>) -> Result<Self::Output>; in aio_return() 272 fn cancel(self: Pin<&mut Self>) -> Result<AioCancelStat>; in cancel() 309 fn error(self: Pin<&mut Self>) -> Result<()>; in error() 357 fn submit(self: Pin<&mut Self>) -> Result<()>; in submit() 362 fn cancel(self: Pin<&mut Self>) -> Result<AioCancelStat> { [all …]
|
/third_party/rust/crates/pin-utils/tests/ |
D | stack_pin.rs | 4 use core::pin::Pin; 11 let _: Pin<&mut Foo> = foo; in stack_pin() 19 let _: Pin<&mut Foo> = bar; in stack_pin() 20 let _: Pin<&mut Foo> = baz; in stack_pin()
|
D | projection.rs | 2 use std::pin::Pin; 22 let x1: Pin<&mut i32> = foo.as_mut().field1(); in projection()
|
/third_party/rust/crates/cxx/tests/ui/ |
D | mut_return.rs | 10 fn f(t: &Thing) -> Pin<&mut CxxString>; in f() 11 unsafe fn g(t: &Thing) -> Pin<&mut CxxString>; in g() 12 fn h(t: Box<Mut>) -> Pin<&mut CxxString>; in h() 13 fn i<'a>(t: Box<Mut<'a>>) -> Pin<&'a mut CxxString>; in i()
|
D | pin_mut_opaque.stderr | 1 error: mutable reference to C++ type requires a pin -- use Pin<&mut Opaque> 7 error: mutable reference to C++ type requires a pin -- use Pin<&mut CxxString> 13 error: mutable reference to C++ type requires a pin -- use Pin<&mut CxxVector<...>> 25 error: mutable reference to opaque C++ type requires a pin -- use `self: Pin<&mut Opaque>` 31 error: mutable reference to opaque C++ type requires a pin -- use `self: Pin<&mut Opaque>`
|
D | reserved_lifetime.rs | 6 fn logger<'static>() -> Pin<&'static Logger>; in logger()
|
D | reserved_lifetime.stderr | 4 6 | fn logger<'static>() -> Pin<&'static Logger>;
|
D | mut_return.stderr | 4 10 | fn f(t: &Thing) -> Pin<&mut CxxString>;
|
/third_party/rust/crates/cxx/tests/ffi/ |
D | module.rs | 36 fn c_take_trivial_pin_ref(d: Pin<&D>); in c_take_trivial_pin_ref() 37 fn c_take_trivial_pin_mut_ref(d: Pin<&mut D>); in c_take_trivial_pin_mut_ref() 47 fn c_take_opaque_mut_ref_method(self: Pin<&mut E>); in c_take_opaque_mut_ref_method() 55 fn c_return_opaque_mut_pin(e: Pin<&mut E>) -> Pin<&mut E>; in c_return_opaque_mut_pin()
|
D | lib.rs | 116 fn c_return_mut_vector(c: Pin<&mut C>) -> Pin<&mut CxxVector<u8>>; in c_return_mut_vector() 119 fn c_return_mut_rust_vec(c: Pin<&mut C>) -> &mut Vec<u8>; in c_return_mut_rust_vec() 195 fn set(self: Pin<&mut C>, n: usize) -> usize; in set() 198 fn getMut(self: Pin<&mut C>) -> &mut usize; in getMut() 199 fn set_succeed(self: Pin<&mut C>, n: usize) -> Result<usize>; in set_succeed() 200 fn get_fail(self: Pin<&mut C>) -> Result<usize>; in get_fail() 242 fn nonconst_member(self: Pin<&mut Borrow>); in nonconst_member()
|
/third_party/mesa3d/src/gallium/drivers/r600/sfn/ |
D | sfn_valuefactory.h | 217 PRegister dest(const nir_alu_dest& dest, int chan, Pin pin_channel); 218 PRegister dest(const nir_dest& dest, int chan, Pin pin_channel); 219 PRegister dest(const nir_ssa_def& dest, int chan, Pin pin_channel); 223 RegisterVec4 temp_vec4(Pin pin, const RegisterVec4::Swizzle& swizzle = {0,1,2,3}); 224 RegisterVec4 dest_vec4(const nir_dest& dest, Pin pin); 226 … RegisterVec4 src_vec4(const nir_src& src, Pin pin, const RegisterVec4::Swizzle &swz = {0,1,2,3}); 240 Pin pin = pin_none);
|
D | sfn_virtualvalues.h | 48 enum Pin { enum 58 std::ostream& operator << (std::ostream& os, Pin pin); 84 VirtualValue(int sel, int chan, Pin pin); 89 Pin pin() const { return m_pins;}; in pin() 92 void set_pin(Pin p) { m_pins = p;} in set_pin() 119 Pin m_pins; 147 Register(int sel, int chan, Pin pin); 242 RegisterVec4(int sel, bool is_ssa = false, const Swizzle& swz = {0,1,2,3}, Pin pin = pin_group); 243 RegisterVec4(PRegister x, PRegister y, PRegister z, PRegister w, Pin pin);
|
D | sfn_valuefactory.cpp | 165 Pin pin_channel) in dest() 217 PRegister ValueFactory::dest(const nir_dest& dst, int chan, Pin pin_channel) in dest() 267 RegisterVec4 ValueFactory::temp_vec4(Pin pin, const RegisterVec4::Swizzle &swizzle) in temp_vec4() 284 RegisterVec4 ValueFactory::dest_vec4(const nir_dest& dst, Pin pin) in dest_vec4() 351 ValueFactory::dest(const nir_ssa_def& ssa, int chan, Pin pin_channel) in dest() 476 RegisterVec4 ValueFactory::src_vec4(const nir_src& source, Pin pin, const RegisterVec4::Swizzle& sw… in src_vec4() 497 static Pin 733 Pin pin) in dest_vec4_from_string() 782 Pin pin = used_reg ? used_reg->pin() : pin_group; in src_vec4_from_string()
|
D | sfn_virtualvalues.cpp | 43 std::ostream& operator << (std::ostream& os, Pin pin) in operator <<() 61 VirtualValue::VirtualValue(int sel, int chan, Pin pin): in VirtualValue() 173 Register::Register(int sel, int chan, Pin pin): in Register() 339 RegisterVec4::RegisterVec4(int sel, bool is_ssa, const Swizzle& swz, Pin pin): in RegisterVec4() 357 RegisterVec4::RegisterVec4(PRegister x, PRegister y, PRegister z, PRegister w, Pin pin) in RegisterVec4()
|
/third_party/rust/crates/either/src/ |
D | lib.rs | 33 use core::pin::Pin; 262 pub fn as_pin_ref(self: Pin<&Self>) -> Either<Pin<&L>, Pin<&R>> { in as_pin_ref() 266 match *Pin::get_ref(self) { in as_pin_ref() 267 Left(ref inner) => Left(Pin::new_unchecked(inner)), in as_pin_ref() 268 Right(ref inner) => Right(Pin::new_unchecked(inner)), in as_pin_ref() 275 pub fn as_pin_mut(self: Pin<&mut Self>) -> Either<Pin<&mut L>, Pin<&mut R>> { in as_pin_mut() 282 match *Pin::get_unchecked_mut(self) { in as_pin_mut() 283 Left(ref mut inner) => Left(Pin::new_unchecked(inner)), in as_pin_mut() 284 Right(ref mut inner) => Right(Pin::new_unchecked(inner)), in as_pin_mut() 1081 self: Pin<&mut Self>, in poll()
|
/third_party/rust/crates/cxx/book/src/binding/ |
D | slice.md | 109 use std::pin::Pin; 114 fn prettify_json(input: &[u8], output: Pin<&mut CxxString>) -> Result<()>; 118 struct WriteToCxxString<'a>(Pin<&'a mut CxxString>); 130 fn prettify_json(input: &[u8], output: Pin<&mut CxxString>) -> serde_json::Result<()> {
|
/third_party/rust/crates/syn/tests/ |
D | test_receiver.rs | 111 fn by_pin(self: Pin<Self>); in test_by_pin() 145 fn explicit_type(self: Pin<MyType>); in test_explicit_type()
|
/third_party/rust/crates/cxx/macro/src/ |
D | tokens.rs | 36 tokens.extend(quote_spanned!(pin.span=> ::cxx::core::pin::Pin)); in to_tokens() 64 tokens.extend(quote_spanned!(pin.span=> ::cxx::core::pin::Pin)); in to_tokens()
|
/third_party/rust/crates/cxx/syntax/ |
D | mod.rs | 213 pub pin_tokens: Option<(kw::Pin, Token![<], Token![>])>, 256 pub pin_tokens: Option<(kw::Pin, Token![<], Token![>])>,
|
/third_party/rust/crates/nix/test/sys/ |
D | test_aio.rs | 5 pin::Pin, 219 let mut aior = unsafe { Pin::new_unchecked(&mut aior) }; in on_stack() 398 let mut aiow = unsafe { Pin::new_unchecked(&mut aiow) }; in on_stack()
|