Lines Matching refs:Result

306     pub fn try_new(x: T) -> Result<Self, AllocError> {
333 pub fn try_new_uninit() -> Result<Box<mem::MaybeUninit<T>>, AllocError> {
359 pub fn try_new_zeroed() -> Result<Box<mem::MaybeUninit<T>>, AllocError> {
410 pub fn try_new_in(x: T, alloc: A) -> Result<Self, AllocError>
482 pub fn try_new_uninit_in(alloc: A) -> Result<Box<mem::MaybeUninit<T>, A>, AllocError>
556 pub fn try_new_zeroed_in(alloc: A) -> Result<Box<mem::MaybeUninit<T>, A>, AllocError>
689 pub fn try_new_uninit_slice(len: usize) -> Result<Box<[mem::MaybeUninit<T>]>, AllocError> {
723 pub fn try_new_zeroed_slice(len: usize) -> Result<Box<[mem::MaybeUninit<T>]>, AllocError> {
1678 fn try_from(boxed_slice: Box<[T]>) -> Result<Self, Self::Error> {
1710 fn try_from(vec: Vec<T>) -> Result<Self, Self::Error> {
1740 pub fn downcast<T: Any>(self) -> Result<Box<T, A>, Self> {
1799 pub fn downcast<T: Any>(self) -> Result<Box<T, A>, Self> {
1858 pub fn downcast<T: Any>(self) -> Result<Box<T, A>, Self> {
1900 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
1907 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
1914 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
2169 pub fn downcast<T: Error + 'static>(self: Box<Self>) -> Result<Box<T>, Box<dyn Error>> {
2186 pub fn downcast<T: Error + 'static>(self: Box<Self>) -> Result<Box<T>, Box<dyn Error + Send>> {
2200 pub fn downcast<T: Error + 'static>(self: Box<Self>) -> Result<Box<T>, Box<Self>> {
2225 /// fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
2259 /// fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
2309 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
2316 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {