Lines Matching refs:not
71 //! not valid. The recommended way to build a Box to a ZST if `Box::new` cannot
113 //! this does not mean that you can convert an arbitrary `T*` into a `Box<T>`
129 //! **Warning: This section is not normative and is subject to change, possibly
136 //! is not allowed. For more guidance on working with box from unsafe code, see
170 #[cfg(not(no_global_oom_handling))]
173 #[cfg(not(no_global_oom_handling))]
176 #[cfg(not(no_global_oom_handling))]
178 #[cfg(not(no_global_oom_handling))]
180 #[cfg(not(no_global_oom_handling))]
183 #[cfg(not(no_thin))]
187 #[cfg(not(no_thin))]
214 #[cfg(all(not(no_global_oom_handling)))]
242 #[cfg(not(no_global_oom_handling))]
268 #[cfg(not(no_global_oom_handling))]
276 /// Constructs a new `Pin<Box<T>>`. If `T` does not implement [`Unpin`], then
283 #[cfg(not(no_global_oom_handling))]
378 #[cfg(not(no_global_oom_handling))]
442 #[cfg(not(no_global_oom_handling))]
450 // NOTE: Prefer match over unwrap_or_else since closure sometimes not inlineable.
516 #[cfg(not(no_global_oom_handling))]
524 // NOTE: Prefer match over unwrap_or_else since closure sometimes not inlineable.
569 /// Constructs a new `Pin<Box<T, A>>`. If `T` does not implement [`Unpin`], then
576 #[cfg(not(no_global_oom_handling))]
589 /// This conversion does not allocate on the heap and happens in place.
635 #[cfg(not(no_global_oom_handling))]
660 #[cfg(not(no_global_oom_handling))]
760 #[cfg(not(no_global_oom_handling))]
788 #[cfg(not(no_global_oom_handling))]
805 /// Calling this when the content is not yet fully initialized
878 /// Calling this when the content is not yet fully initialized
1121 // raw pointer for the type system. Turning it directly into a raw pointer would not be
1148 /// leak. If this is not acceptable, the reference should first be wrapped
1185 /// Converts a `Box<T>` into a `Pin<Box<T>>`. If `T` does not implement [`Unpin`], then
1188 /// This conversion does not allocate on the heap and happens in place.
1199 /// It's not recommended that crates add an impl like `From<Box<T>> for Pin<T>`,
1221 // It's not possible to move or replace the insides of a `Pin<Box<T>>`
1245 #[cfg(not(no_global_oom_handling))]
1255 #[cfg(not(no_global_oom_handling))]
1265 #[cfg(not(no_global_oom_handling))]
1279 #[cfg(not(no_global_oom_handling))]
1329 #[cfg(not(no_global_oom_handling))]
1442 #[cfg(not(no_global_oom_handling))]
1468 /// Converts a `Box<T>` into a `Pin<Box<T>>`. If `T` does not implement [`Unpin`], then
1471 /// This conversion does not allocate on the heap and happens in place.
1485 #[cfg(not(no_global_oom_handling))]
1490 #[cfg(not(no_global_oom_handling))]
1498 #[cfg(not(no_global_oom_handling))]
1511 #[cfg(not(no_global_oom_handling))]
1533 #[cfg(not(no_global_oom_handling))]
1551 #[cfg(not(no_global_oom_handling))]
1571 #[cfg(not(no_global_oom_handling))]
1610 /// This conversion does not allocate on the heap and happens in place.
1631 #[cfg(not(no_global_oom_handling))]
1671 /// The conversion occurs in-place and does not require a
1677 /// `boxed_slice.len()` does not equal `N`.
1687 #[cfg(not(no_global_oom_handling))]
1700 /// `boxed_slice.len()` does not equal `N`.
1915 // It's not possible to extract the inner Uniq directly from the Box,
2035 #[cfg(not(no_global_oom_handling))]
2043 #[cfg(not(no_global_oom_handling))]
2090 * We could have chosen not to add this impl, and instead have written a
2091 * function of Pin<Box<T>> to Pin<T>. Such a function would not be sound,
2092 * because Box<T> implements Unpin even when T does not, as a result of
2103 * trait functionality does not apply (e.g., Box<dyn Foo> would
2104 * otherwise not be Unpin).
2209 #[cfg(not(no_global_oom_handling))]
2242 #[cfg(not(no_global_oom_handling))]
2281 #[cfg(not(no_global_oom_handling))]
2325 #[cfg(not(no_global_oom_handling))]
2347 #[cfg(not(no_global_oom_handling))]
2371 #[cfg(not(no_global_oom_handling))]
2393 #[cfg(not(no_global_oom_handling))]
2415 #[cfg(not(no_global_oom_handling))]