/third_party/rust/crates/cxx/src/ |
H A D | cxx_vector.rs | 12 use core::pin::Pin; 31 // Prevent unpin operation from Pin<&mut CxxVector<T>> to &mut CxxVector<T>. 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() 154 /// Returns an iterator over elements of type `Pin<&mut T>`. 155 pub fn iter_mut(self: Pin< [all...] |
H A 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() 65 /// The macro expands to something resembling `let $var: Pin<&mut CxxString> = 66 /// /*???*/;`. The resulting [`Pin`] can be deref'd to `&CxxString` as needed. 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< [all...] |
H A 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() 115 // UniquePtr is not a self-referential type and is safe to move out of a Pin, 151 Some(target) => Pin::into_inner(target), in deref_mut()
|
/third_party/rust/crates/nix/src/sys/ |
H A D | aio.rs | 34 pin::Pin, 113 // * Future::poll takes a `Pin<&mut self>` rather than `self`, and 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< [all...] |
/third_party/rust/crates/pin-utils/tests/ |
H A 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()
|
H A 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/ffi/ |
H A 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()
|
H A 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/rust/crates/pin-utils/src/ |
H A D | projection.rs | 17 /// use std::pin::Pin; 26 /// fn baz(mut self: Pin<&mut Self>) { 27 /// let _: Pin<&mut T> = self.field(); // Pinned reference to the field 35 /// avoid consuming the `Pin`. 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( 68 /// use std::pin::Pin; 78 /// fn baz(mut self: Pin<&mut Self>) { 85 /// avoid consuming the [`Pin`] [all...] |
H A D | stack_pin.rs | 7 /// # use core::pin::Pin; 11 /// let _: Pin<&mut Foo> = foo; 22 $crate::core_reexport::pin::Pin::new_unchecked(&mut $x)
|
/third_party/rust/crates/syn/tests/ |
H A D | test_receiver.rs | 111 fn by_pin(self: Pin<Self>); in test_by_pin() 120 ident: "Pin", in test_by_pin() 145 fn explicit_type(self: Pin<MyType>); in test_explicit_type() 154 ident: "Pin", in test_explicit_type()
|
/third_party/mesa3d/src/gallium/drivers/r600/sfn/ |
H A 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);
|
H A 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);
|
H A 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) 476 RegisterVec4 ValueFactory::src_vec4(const nir_src& source, Pin pin, const RegisterVec4::Swizzle& swz) 497 static Pin 733 Pin pin) 782 Pin pin = used_reg ? used_reg->pin() : pin_group;
|
H A 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): 339 RegisterVec4::RegisterVec4(int sel, bool is_ssa, const Swizzle& swz, Pin pin): 357 RegisterVec4::RegisterVec4(PRegister x, PRegister y, PRegister z, PRegister w, Pin pin) 748 /* Pin the array register on the start, because currently we don't
|
H A D | sfn_shader.h | 270 bool emit_simple_mov(nir_dest& dest, int chan, PVirtualValue src, Pin pin = pin_free); 280 bool allocate_registers_from_string(std::istream& is, Pin pin);
|
H A D | sfn_instrfactory.cpp | 154 Pin pin = literal->def.num_components == 1 ? pin_free : pin_none; in load_const()
|
/third_party/rust/crates/either/src/ |
H A D | lib.rs | 33 use core::pin::Pin; 260 /// Convert `Pin<&Either<L, R>>` to `Either<Pin<&L>, Pin<&R>>`, 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 in as_pin_ref() [all...] |
/third_party/rust/crates/cxx/macro/src/ |
H A 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/gen/build/src/syntax/ |
H A 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/cxx/gen/lib/src/syntax/ |
H A 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/cxx/macro/src/syntax/ |
H A 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/cxx/syntax/ |
H A 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/cxx/gen/cmd/src/syntax/ |
H A 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/ |
H A 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()
|