Home
last modified time | relevance | path

Searched refs:Pin (Results 1 – 25 of 61) sorted by relevance

123

/third_party/rust/crates/cxx/src/
Dcxx_vector.rs12 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 …]
Dcxx_string.rs12 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 …]
Dunique_ptr.rs11 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/
Dprojection.rs44 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
Dstack_pin.rs22 $crate::core_reexport::pin::Pin::new_unchecked(&mut $x)
/third_party/rust/crates/nix/src/sys/
Daio.rs34 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/
Dstack_pin.rs4 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()
Dprojection.rs2 use std::pin::Pin;
22 let x1: Pin<&mut i32> = foo.as_mut().field1(); in projection()
/third_party/rust/crates/cxx/tests/ui/
Dmut_return.rs10 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()
Dpin_mut_opaque.stderr1 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>`
Dreserved_lifetime.rs6 fn logger<'static>() -> Pin<&'static Logger>; in logger()
Dreserved_lifetime.stderr4 6 | fn logger<'static>() -> Pin<&'static Logger>;
Dmut_return.stderr4 10 | fn f(t: &Thing) -> Pin<&mut CxxString>;
/third_party/rust/crates/cxx/tests/ffi/
Dmodule.rs36 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()
Dlib.rs116 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/
Dsfn_valuefactory.h217 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);
Dsfn_virtualvalues.h48 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);
Dsfn_valuefactory.cpp165 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()
Dsfn_virtualvalues.cpp43 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/
Dlib.rs33 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/
Dslice.md109 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/
Dtest_receiver.rs111 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/
Dtokens.rs36 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/
Dmod.rs213 pub pin_tokens: Option<(kw::Pin, Token![<], Token![>])>,
256 pub pin_tokens: Option<(kw::Pin, Token![<], Token![>])>,
/third_party/rust/crates/nix/test/sys/
Dtest_aio.rs5 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()

123