Lines Matching defs:Self
219 pub fn new(x: T) -> Self { in new()
306 pub fn try_new(x: T) -> Result<Self, AllocError> { in try_new()
410 pub fn try_new_in(x: T, alloc: A) -> Result<Self, AllocError> in try_new_in()
862 pub fn write(mut boxed: Self, value: T) -> Box<T, A> { in write()
954 pub unsafe fn from_raw(raw: *mut T) -> Self { in from_raw()
1010 pub const unsafe fn from_raw_in(raw: *mut T, alloc: A) -> Self { in from_raw_in()
1297 fn clone(&self) -> Self { in clone()
1324 fn clone_from(&mut self, source: &Self) { in clone_from()
1332 fn clone(&self) -> Self { in clone()
1458 fn from(t: T) -> Self { in from()
1479 fn from(boxed: Box<T, A>) -> Self { in from()
1487 fn from_slice(slice: &[T]) -> Self; in from_slice()
1493 default fn from_slice(slice: &[T]) -> Self { in from_slice()
1501 fn from_slice(slice: &[T]) -> Self { in from_slice()
1625 fn from(s: Box<str, A>) -> Self { in from()
1678 fn try_from(boxed_slice: Box<[T]>) -> Result<Self, Self::Error> { in try_from()
1710 fn try_from(vec: Vec<T>) -> Result<Self, Self::Error> { in try_from()
1740 pub fn downcast<T: Any>(self) -> Result<Box<T, A>, Self> { in downcast() argument
1799 pub fn downcast<T: Any>(self) -> Result<Box<T, A>, Self> { in downcast() argument
1858 pub fn downcast<T: Any>(self) -> Result<Box<T, A>, Self> { in downcast() argument
2046 fn clone(&self) -> Self { in clone()
2051 fn clone_from(&mut self, other: &Self) { in clone_from()
2121 fn resume(mut self: Pin<&mut Self>, arg: R) -> GeneratorState<Self::Yield, Self::Return> { in resume()
2134 fn resume(mut self: Pin<&mut Self>, arg: R) -> GeneratorState<Self::Yield, Self::Return> { in resume()
2146 fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { in poll()
2155 fn poll_next(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Option<Self::Item>> { in poll_next()
2200 pub fn downcast<T: Error + 'static>(self: Box<Self>) -> Result<Box<T>, Box<Self>> { in downcast()