Lines Matching refs:Pin
12 use core::pin::Pin;
26 fn string_clear(this: Pin<&mut CxxString>);
28 fn string_reserve_total(this: Pin<&mut CxxString>, new_cap: usize);
30 fn string_push(this: Pin<&mut CxxString>, ptr: *const u8, len: usize);
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>) {
191 pub fn reserve(self: Pin<&mut Self>, additional: usize) {
200 pub fn push_str(self: Pin<&mut Self>, s: &str) {
205 pub fn push_bytes(self: Pin<&mut Self>, bytes: &[u8]) {
260 impl fmt::Write for Pin<&mut CxxString> {
268 impl std::io::Write for Pin<&mut CxxString> {
295 pub unsafe fn init(&mut self, value: impl AsRef<[u8]>) -> Pin<&mut CxxString> {
300 Pin::new_unchecked(&mut *this.as_mut_ptr())