Lines Matching defs:call

8288 // … to call `RawVec::with_capacity_zeroed` for creating `Vec<*mut T>`,
14021 // These are the magic symbols to call the global allocator. rustc generates
14022 // them to call `__rg_alloc` etc. if there is a `#[global_allocator]` attribute
14023 // (the code expanding that attribute macro generates those functions), or to call
14209 // `new_ptr`. Thus, the call to `copy_nonoverlapping` is safe. The safety contract
14297 // `new_ptr`. Thus, the call to `copy_nonoverlapping` is safe. The safety contract
14341 // This is the magic symbol to call the global alloc error handler. rustc generates
14342 // it to call `__rg_oom` if there is a `#[alloc_error_handler]`, or to call the
14351 /// in response to an allocation error are encouraged to call this function,
14478 /// HACK(Centril): This exists because stable `const fn` can only call stable `const fn`, so
14479 /// they cannot call `Self::new()`.
14482 /// that would truly const-call something unstable.
14738 // handle_reserve behind a call, while making sure that the this function is likely to be
14739 // inlined as just a comparison and a call if the comparison fails.
18917 /// `Cow` implements `Deref`, which means that you can call
19531 //! so you can call `T`'s methods on a value of type [`Rc<T>`][`Rc`]. To avoid name
19544 //! while others prefer using method-call syntax.
19550 //! // Method-call syntax
19709 //! // guarantee the allocation still exists, we need to call
19787 /// that you have to call them as e.g., [`Rc::get_mut(&mut value)`][get_mut] instead of
20307 /// The raw pointer must have been previously returned by a call to
21439 /// The typical way to obtain a `Weak` pointer is to call [`Rc::downgrade`].
21588 /// call to [`into_raw`].
21623 // SAFETY: data_offset is safe to call, as ptr references a real (potentially dropped) T.
23236 // trait dispatch - instead both impls call this function directly and
23402 /// so you can call `T`'s methods on a value of type `Arc<T>`. To avoid name
23415 /// while others prefer using method-call syntax.
23421 /// // Method-call syntax
23538 /// The typical way to obtain a `Weak` pointer is to call [`Arc::downgrade`].
24078 /// The raw pointer must have been previously returned by a call to
25000 /// call to [`into_raw`].
25035 // SAFETY: data_offset is safe to call, as ptr references a real (potentially dropped) T.
30017 // Ideally we'd call `BTreeMap::new` here, but that has the `K:
34128 /// call this method again subject to its safety conditions, or call counterpart
34146 /// call this method again subject to its safety conditions, or call counterpart
35201 /// function a reference to the key that was moved during the `.entry(key)` method call.
36339 // Lacking static_assert, call `range` conditionally, to emphasise that
38072 /// while not marked as unsafe to call, can invoke UB if called incorrectly.
38091 /// Therefore, we have to explicitly call `reborrow` on a more powerfull
38096 /// Sometimes, to invoke such a method, we need to call `reborrow_mut`.
38370 // SAFETY: the caller will not be able to call further methods on self
38384 // SAFETY: the caller will not be able to call further methods on self
38400 // SAFETY: the caller will not be able to call further methods on self
38954 // We cannot call separate key and value methods, because calling the second one
42734 // so it's sound to call here because we're calling with something
44739 /// The worst case cost of a *single* call to `push` is *O*(*n*). The worst case
48008 /// // which makes `set_len` safe to call.
48010 /// // Make the FFI call...
48025 /// the inner vectors were not freed prior to the `set_len` call:
48623 /// `[at, len)`. After the call, the original vector will be left containing
49679 /// you can call [`.truncate(N)`](Vec::truncate) first.
49764 /// The index of the item that will be inspected by the next call to `next`.
50885 /// resulting `Box`. Specifically, the `Box` destructor will call
50934 /// resulting `Box`. Specifically, the `Box` destructor will call
50997 /// to call it as `Box::into_raw(b)` instead of `b.into_raw()`. This
51042 /// to call it as `Box::into_raw_with_allocator(b)` instead of `b.into_raw_with_allocator()`. This
51102 /// to call it as `Box::allocator(&b)` instead of `b.allocator()`. This
51123 /// to call it as `Box::leak(b)` instead of `b.leak()`. This
51715 extern "rust-call" fn call_once(self, args: Args) -> Self::Output {
51722 extern "rust-call" fn call_mut(&mut self, args: Args) -> Self::Output {
51729 extern "rust-call" fn call(&self, args: Args) -> Self::Output {
51730 <F as Fn<Args>>::call(self, args)