Lines Matching defs:T
22 unsafe impl<T> ZeroableOption for Box<T> {}
25 pub trait InPlaceInit<T>: Sized {
26 /// Use the given pin-initializer to pin-initialize a `T` inside of a new smart pointer of this
29 /// If `T: !Unpin` it will not be able to move afterwards.
30 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E>
34 /// Use the given pin-initializer to pin-initialize a `T` inside of a new smart pointer of this
37 /// If `T: !Unpin` it will not be able to move afterwards.
39 fn pin_init(init: impl PinInit<T>) -> Result<Pin<Self>, AllocError> {
50 /// Use the given initializer to in-place initialize a `T`.
51 fn try_init<E>(init: impl Init<T, E>) -> Result<Self, E>
55 /// Use the given initializer to in-place initialize a `T`.
57 fn init(init: impl Init<T>) -> Result<Self, AllocError> {
82 impl<T> InPlaceInit<T> for Box<T> {
84 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E>
92 fn try_init<E>(init: impl Init<T, E>) -> Result<Self, E>
100 impl<T> InPlaceInit<T> for Arc<T> {
102 fn try_pin_init<E>(init: impl PinInit<T, E>) -> Result<Pin<Self>, E>
120 fn try_init<E>(init: impl Init<T, E>) -> Result<Self, E>
138 impl<T> InPlaceWrite<T> for Box<MaybeUninit<T>> {
139 type Initialized = Box<T>;
142 fn write_init<E>(mut self, init: impl Init<T, E>) -> Result<Self::Initialized, E> {
152 fn write_pin_init<E>(mut self, init: impl PinInit<T, E>) -> Result<Pin<Self::Initialized>, E> {