Skip to main content

BulkMut

Struct BulkMut 

Source
pub struct BulkMut<'a, T>
where T: 'a,
{ /* private fields */ }

Trait Implementations§

Source§

impl<'a, T> Bulk for BulkMut<'a, T>
where T: 'a,

Source§

fn len(&self) -> usize

Returns the exact length of the bulk. Read more
Source§

fn is_empty(&self) -> bool

Returns true if the bulk is empty. Read more
Source§

fn first(self) -> Option<Self::Item>
where Self::Item:, Self: Sized,

Returns the first value, and discards the rest of the bulk. Read more
Source§

fn nth<L>(self, n: L) -> Option<Self::Item>
where Self::Item:, Self: Sized, L: LengthValue,

Returns the n-th value, and discards the rest of the bulk. Read more
Source§

fn for_each<F>(self, f: F)
where F: FnMut(&'a mut T),

Calls a closure on each element of a bulk. Read more
Source§

fn try_for_each<F, R>(self, f: F) -> R
where &'a mut T:, F: FnMut(&'a mut T) -> R, R: Try<Output = ()>,

A bulk method that applies a fallible function to each item in the bulk, stopping at the first error and returning that error. Read more
Source§

type MinLength = [(); 0]

Source§

type MaxLength = [()]

Source§

fn length(&self) -> Value<BulkLength<Self>>

Source§

fn last(self) -> Option<Self::Item>
where Self::Item:, Self: Sized,

Returns the last value, and discards the rest of the bulk. Read more
Source§

fn nth_back<L>(self, n: L) -> Option<Self::Item>
where Self: Sized + DoubleEndedBulk, Self::Item:, L: LengthValue,

Returns the n-th value from the back, and discards the rest of the bulk. Read more
Source§

fn many<NN, const N: usize>(self, n: NN) -> [Option<Self::Item>; N]
where Self: Sized, Self::Item:, NN: IntoBulk<Item = usize, IntoBulk: Bulk + StaticBulk<Array<()> = [(); N]>>,

Source§

fn par(self) -> Map<Self, impl Fn(Self::Item) -> Ready<Self::Item>> ⓘ
where Self: Sized,

Source§

fn for_each_async<F>(self, f: F) -> ForEachAsync<Self, F> ⓘ
where Self: BufferableBulk + Sized, F: FnMut<(Self::Item,), Output: Future<Output = ()>>,

Calls an asynchronous closure once on each element of a bulk in an arbitrary execution order. Read more
Source§

fn try_for_each_async<F>(self, f: F) -> TryForEachAsync<Self, F> ⓘ
where Self: BufferableBulk + Sized, F: FnMut<(Self::Item,), Output: Future<Output: Try<Output = ()>>>,

Applies a fallible asynchronous function once to each item in an arbitrary execution order. Read more
Source§

fn fold<B, F>(self, init: B, f: F) -> B
where Self: Sized, B:, F: FnMut(B, Self::Item) -> B,

Folds every element into an accumulator by applying an operation, returning the final result. Read more
Source§

fn rfold<B, F>(self, init: B, f: F) -> B
where Self: Sized + DoubleEndedBulk, B:, F: FnMut(B, Self::Item) -> B,

Reduces the bulks’s elements to a single, final value, starting from the back. Read more
Source§

fn try_fold<B, F, R>(self, init: B, f: F) -> R
where B:, Self: Sized, Self::Item:, F: FnMut(B, Self::Item) -> R, R: Try<Output = B>,

Source§

fn try_rfold<B, F, R>(self, init: B, f: F) -> R
where B:, Self: Sized + DoubleEndedBulk, Self::Item:, F: FnMut(B, Self::Item) -> R, R: Try<Output = B>,

Source§

fn reduce<F>(self, f: F) -> Option<Self::Item>
where Self: Sized, Self::Item:, F: FnMut(Self::Item, Self::Item) -> Self::Item,

Reduces the elements to a single one, by repeatedly applying a reducing operation. Read more
Source§

fn reduce_async<F>(self, f: F) -> ReduceAsync<Self, F> ⓘ
where Self: BufferableBulk + Sized, F: FnMut<(Self::Item, Self::Item), Output: Future<Output = Self::Item>>,

Reduces the elements to a single one, by concurrently applying a reducing operation, by way of divide and conquer. Read more
Source§

fn try_reduce<F, R>( self, f: F, ) -> <R::Residual as Residual<Option<R::Output>>>::TryType
where Self: Sized, Self::Item:, F: FnMut(Self::Item, Self::Item) -> R, R: Try<Output = Self::Item, Residual: Residual<Option<Self::Item>, TryType: Try>>,

Reduces the elements to a single one by repeatedly applying a reducing operation. If the closure returns a failure, the failure is propagated back to the caller immediately. Read more
Source§

fn try_reduce_async<F, R>(self, f: F) -> TryReduceAsync<Self, F, R> ⓘ
where Self: BufferableBulk + Sized, F: FnMut<(Self::Item, Self::Item), Output: Future<Output = R>>, R: Try<Output = Self::Item, Residual: Residual<Option<Self::Item>>>,

Source§

fn all<F>(self, f: F) -> bool
where Self: Sized, F: FnMut(Self::Item) -> bool, Self::Item:,

Tests if every element of the bulk matches a predicate. Read more
Source§

fn all_async<F>(self, condition: F) -> AllAsync<Self, F> ⓘ
where Self: BufferableBulk + Sized, F: FnMut<(Self::Item,), Output: Future<Output = bool>>,

Tests if every element of the bulk matches an asynchronous predicate. Read more
Source§

fn any<F>(self, f: F) -> bool
where Self: Sized, F: FnMut(Self::Item) -> bool, Self::Item:,

Tests if any element of the bulk matches a predicate. Read more
Source§

fn any_async<F>(self, condition: F) -> AnyAsync<Self, F> ⓘ
where Self: BufferableBulk + Sized, F: FnMut<(Self::Item,), Output: Future<Output = bool>>,

Tests if any element of the bulk matches an asynchronous predicate. Read more
Source§

fn find<P>(self, predicate: P) -> Option<Self::Item>
where Self: Sized, Self::Item:, P: FnMut(&Self::Item) -> bool,

Searches for an element of a bulk that satisfies a predicate. Read more
Source§

fn rfind<P>(self, predicate: P) -> Option<Self::Item>
where Self: Sized + DoubleEndedBulk, P: FnMut(&Self::Item) -> bool, Self::Item:,

Searches for an element of a bulk from the back that satisfies a predicate. Read more
Source§

fn find_map<B, F>(self, mapper: F) -> Option<B>
where Self: Sized, Self::Item:, F: FnMut(Self::Item) -> Option<B>, B:,

Applies function to the elements of the bulk and returns the first non-none result. Read more
Source§

fn find_map_async<B, F>(self, f: F) -> FindMapAsync<Self, B, F> ⓘ
where Self: BufferableBulk + Sized, F: FnMut<(Self::Item,), Output: Future<Output = Option<B>>>,

Source§

fn try_find<F, R>( self, predicate: F, ) -> <<R as Try>::Residual as Residual<Option<Self::Item>>>::TryType
where Self: Sized, Self::Item:, F: FnMut(&Self::Item) -> R, R: Try<Output = bool, Residual: Residual<Option<Self::Item>>>,

Applies function to the elements of the bulk and returns the first true result or the first error. Read more
Source§

fn position<P>(self, predicate: P) -> Option<usize>
where Self: Sized, Self::Item:, P: FnMut(Self::Item) -> bool,

Searches for an element in a bulk, returning its index. Read more
Source§

fn position_async<F>(self, f: F) -> PositionAsync<Self, F> ⓘ
where Self: BufferableBulk + Sized, F: FnMut<(Self::Item,), Output: Future<Output = bool>>,

Source§

fn rposition<P>(self, predicate: P) -> Option<usize>
where P: FnMut(Self::Item) -> bool, Self::Item:, Self: Sized + DoubleEndedBulk,

Searches for an element in a bulk from the right, returning its index. Read more
Source§

fn max(self) -> Option<Self::Item>
where Self: Sized, Self::Item: Ord,

Returns the maximum element of a bulk. Read more
Source§

fn min(self) -> Option<Self::Item>
where Self: Sized, Self::Item: Ord,

Returns the minimum element of a bulk. Read more
Source§

fn max_by_key<B, F>(self, keygen: F) -> Option<Self::Item>
where Self: Sized, Self::Item:, F: FnMut(&Self::Item) -> B, B: Ord,

Returns the element that gives the maximum value from the specified function. Read more
Source§

fn max_by<F>(self, compare: F) -> Option<Self::Item>
where Self: Sized, Self::Item:, F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Returns the element that gives the maximum value with respect to the specified comparison function. Read more
Source§

fn min_by_key<B, F>(self, keygen: F) -> Option<Self::Item>
where Self: Sized, Self::Item:, F: FnMut(&Self::Item) -> B, B: Ord,

Returns the element that gives the minimum value from the specified function. Read more
Source§

fn min_by<F>(self, compare: F) -> Option<Self::Item>
where Self: Sized, Self::Item:, F: FnMut(&Self::Item, &Self::Item) -> Ordering,

Returns the element that gives the minimum value with respect to the specified comparison function. Read more
Source§

fn step_by<L>(self, step: L) -> StepBy<Self, L::Length<()>> ⓘ
where Self: Sized, L: LengthValue,

Creates a bulk starting at the same point, but stepping by the given amount at each iteration. Read more
Source§

fn chain<U>(self, other: U) -> Chain<Self, U::IntoBulk> ⓘ
where Self: Sized, U: IntoBulk<Item = Self::Item>,

Takes two bulks and creates a new bulk over both in sequence. Read more
Source§

fn zip<U>( self, other: U, ) -> Zip<Self, <<U as IntoContained>::IntoContained as IntoBulk>::IntoBulk> ⓘ
where Self: Sized, U: IntoContainedBy<Self>,

‘Zips up’ two bulks or iterators into a single bulk of pairs. One of them must be a bulk. Read more
Source§

fn merge<U, F, O>(self, other: U, merger: F) -> Merge<Self, U::IntoBulk, F> ⓘ
where Self: Sized, U: IntoBulk, Self::Item: Into<O>, U::Item: Into<O>, F: FnMut(Self::Item, U::Item) -> O,

Merges two bulks or iterators into a single bulk using a merging function. Read more
Source§

fn intersperse(self, separator: Self::Item) -> Intersperse<Self> ⓘ
where Self: Sized, Self::Item: Clone,

Creates a new bulk which places a copy of separator between adjacent items of the original bulk. Read more
Source§

fn intersperse_with<G>(self, separator: G) -> IntersperseWith<Self, G> ⓘ
where Self: Sized, G: FnMut() -> Self::Item,

Creates a new bulk which places an item generated by separator between adjacent items of the original bulk. Read more
Source§

fn map<B, F>(self, f: F) -> Map<Self, F> ⓘ
where Self: Sized, F: FnMut(Self::Item) -> B,

Takes a closure and creates a bulk which calls that closure on each element. Read more
Source§

fn enumerate(self) -> Enumerate<Self> ⓘ
where Self: Sized,

Creates a bulk which gives the current index together with its values. Read more
Source§

fn enumerate_from<U>(self, initial_count: U) -> EnumerateFrom<Self, U> ⓘ
where Self: Sized, U: Step + Copy,

Creates a bulk which gives the current index counting from a given initial index together with its values. Read more
Source§

fn skip<L>(self, n: L) -> Skip<Self, L::Length<()>> ⓘ
where Self: Sized, L: LengthValue,

Creates a bulk that skips the first n elements. Read more
Source§

fn take<L>(self, n: L) -> Take<Self, L::Length<()>> ⓘ
where Self: Sized, L: LengthValue,

Creates a bulk for the first n elements, or fewer if the underlying bulk/iterator is shorter. Read more
Source§

fn flat_map<U, F>(self, f: F) -> FlatMap<Self, F> ⓘ
where Self: Sized, U: IntoBulk<IntoBulk: StaticBulk>, F: FnMut(Self::Item) -> U,

Creates a bulk that works like map, but flattens nested structure. Read more
Source§

fn flatten(self) -> Flatten<Self> ⓘ
where Self: Sized, Self::Item: IntoBulk<IntoBulk: StaticBulk>,

Creates a bulk that flattens nested structure. Read more
Source§

fn map_windows<F, R, const N: usize>(self, f: F) -> MapWindows<Self, F, N> ⓘ
where Self: Sized, F: FnMut(&[Self::Item; N]) -> R,

Calls the given function f for each contiguous window of size N over self and returns a bulk of the outputs of f. The windows during mapping will overlap. Read more
Source§

fn inspect<F>(self, f: F) -> Inspect<Self, F> ⓘ
where Self: Sized, F: FnMut(&Self::Item),

Does something with each element of a bulk, passing the value on. Read more
Source§

fn mutate<F>(self, f: F) -> Mutate<Self, F> ⓘ
where Self: Sized, F: FnMut(&mut Self::Item),

Mutates with each element of a bulk, passing the value on. Read more
Source§

fn collect<C, A>(self) -> C
where Self: Sized, C: FromBulk<A>, A: CollectionAdapter<Elem = Self::Item> + CollectionStrategy<Self::MinLength, Self::MaxLength, C> + ?Sized,

Transforms a bulk into a collection. Read more
Source§

fn collect_async<C, A>(self) -> CollectAsync<Self, C, A> ⓘ
where Self: BufferableBulk + Sized, Self::Item: Future, C: FromBulk<A>, A: CollectionAdapter<Elem = <Self::Item as Future>::Output> + CollectionStrategy<Self::MinLength, Self::MaxLength, C> + ?Sized,

Source§

fn try_collect<C, A>( self, ) -> <<Self::Item as Try>::Residual as Residual<C>>::TryType
where Self: Sized, C: FromBulk<A>, A: CollectionAdapter<Elem = <Self::Item as Try>::Output> + TryCollectionStrategy<Self::MinLength, Self::MaxLength, C> + ?Sized, Self::Item: Try<Residual: Residual<C, TryType: Try>>,

Fallibly transforms a bulk into a collection, short circuiting if a failure is encountered. Read more
Source§

fn try_collect_async<C, A>(self) -> TryCollectAsync<Self, C, A> ⓘ
where Self: BufferableBulk + Sized, C: FromBulk<A>, A: CollectionAdapter<Elem = <<Self::Item as Future>::Output as Try>::Output> + TryCollectionStrategy<Self::MinLength, Self::MaxLength, C> + ?Sized, Self::Item: Future<Output: Try<Residual: Residual<C>>>,

Source§

fn collect_nearest(self) -> <BulkLength<Self> as Nearest>::NearestFrom<Self>
where Self: Sized, BulkLength<Self>: Nearest, Self::Item:,

Source§

fn collect_nearest_async( self, ) -> CollectAsync<Self, <BulkLength<Self> as Nearest>::NearestAsyncFrom<Self>, <BulkLength<Self> as Nearest>::NearestAsyncStrategyFrom<Self>> ⓘ
where Self: BufferableBulk + Sized, BulkLength<Self>: Nearest, Self::Item: Future,

Source§

fn try_collect_nearest( self, ) -> <<Self::Item as Try>::Residual as Residual<<BulkLength<Self> as Nearest>::TryNearestFrom<Self>>>::TryType
where Self: Sized, BulkLength<Self>: Nearest, Self::Item: Try<Output, Residual: Residual<<BulkLength<Self> as Nearest>::TryNearestFrom<Self>>>,

Source§

fn try_collect_nearest_async( self, ) -> TryCollectAsync<Self, <BulkLength<Self> as Nearest>::TryNearestAsyncFrom<Self>, <BulkLength<Self> as Nearest>::TryNearestAsyncStrategyFrom<Self>> ⓘ
where Self: BufferableBulk + Sized, BulkLength<Self>: Nearest, Self::Item: Future<Output: Try<Residual: Residual<<BulkLength<Self> as Nearest>::TryNearestAsyncFrom<Self>>>>,

Source§

fn collect_array( self, ) -> <Self as StaticBulk>::Array<<Self as IntoIterator>::Item>
where Self: StaticBulk,

Transforms a statically sized bulk into an array. The bulk must implement StaticBulk. Read more
Source§

fn collect_array_async(self) -> CollectArrayAsync<Self> ⓘ
where Self: StaticBulk, Self::Item: Future,

Source§

fn try_collect_array( self, ) -> <<Self::Item as Try>::Residual as Residual<Self::Array<<Self::Item as Try>::Output>>>::TryType
where Self: StaticBulk<Item: Try<Residual: Residual<Self::Array<<Self::Item as Try>::Output>, TryType: Try>, Output>> + Bulk,

Fallibly transforms a statically sized bulk into an array, short circuiting if a failure is encountered. The bulk must implement StaticBulk. Read more
Source§

fn try_collect_array_async(self) -> TryCollectArrayAsync<Self> ⓘ
where Self: StaticBulk, Self::Item: Future<Output: Try<Residual: Residual<Self::Array<<<Self::Item as Future>::Output as Try>::Output>>>>,

Source§

fn resize<N>(self, n: N, element: Self::Item) -> Resize<Self, N::Length<()>> ⓘ
where Self: Sized, Self::Item: Copy, N: LengthValue,

Resizes a bulk, padding it with copies of a given value of element if too short, or truncating it if too long. The resuling bulk will have an exact length given by n. Read more
Source§

fn resize_with<F, N>( self, n: N, padder: F, ) -> ResizeWith<Self, F, N::Length<()>> ⓘ
where Self: Sized, N: LengthValue, F: FnMut() -> Self::Item,

Resizes a bulk, padding it with the output of padder if too short, or truncating it if too long. The resuling bulk will have an exact length given by n. Read more
Source§

fn rev(self) -> Rev<Self> ⓘ
where Self: Sized + DoubleEndedBulk,

Reverses a bulks’s direction. Read more
Source§

fn copied<'a, T>(self) -> Copied<Self> ⓘ
where T: Copy + 'a, Self: Sized + Bulk<Item = &'a T>,

Creates a bulk which copies all of its elements. Read more
Source§

fn cloned<'a, T>(self) -> Cloned<Self> ⓘ
where T: Clone + 'a, Self: Sized + Bulk<Item = &'a T>,

Creates a bulk which clones all of its elements. Read more
Source§

unsafe fn pinned_unchecked(self) -> Pinned<Self> ⓘ
where Self: Sized, Self::Item: Deref,

Safety Read more
Source§

fn pinned(self) -> Pinned<Self> ⓘ
where Self: Sized, Self::Item: Deref<Target: Unpin>,

Source§

unsafe fn unpinned_unchecked<T>(self) -> Unpinned<Self, T> ⓘ
where Self: Sized + Bulk<Item = Pin<T>>, T: Deref,

Safety Read more
Source§

fn unpinned<T>(self) -> Unpinned<Self, T> ⓘ
where Self: Sized + Bulk<Item = Pin<T>>, T: Deref<Target: Unpin>,

Source§

fn array_chunks<const N: usize>(self) -> ArrayChunks<Self, N> ⓘ
where Self: Sized,

Returns a bulk of N elements of the bulk at a time. Read more
Source§

fn split_at<L>(self, n: L) -> (Self::Left, Self::Right)
where Self: SplitBulk<L> + Sized, L: LengthValue,

Splits a bulk in two at a specified index. Read more
Source§

fn rsplit_at<L>(self, n: L) -> (Self::Left, Self::Right)
where Self: SplitBulk<SaturatingSub<<BulkLength<Self> as Length>::Value, L>> + Sized, L: LengthValue,

Splits a bulk in two at a specified reversed index. Read more
Source§

fn swap<S>(self, lhs: impl LengthValue, rhs: impl LengthValue)
where Self: Sized, Self::Item: BorrowMut<S>,

Consumes the bulk, and swaps two elements of it. Items must be mutably dereferenceable. Read more
Source§

fn try_swap<S>( self, lhs: impl LengthValue, rhs: impl LengthValue, ) -> Result<(), OutOfRange>
where Self: Sized, Self::Item: BorrowMut<S>,

Consumes the bulk, and swaps two elements of it. Items must be mutably dereferenceable. Read more
Source§

fn sum_from<T>(self, from: T) -> T
where T: Add<Self::Item, Output = T>, Self: Sized,

Source§

fn product_from<T>(self, from: T) -> T
where T: Mul<Self::Item, Output = T>, Self: Sized,

Source§

impl<'a, T> DoubleEndedBulk for BulkMut<'a, T>

Source§

fn rev_for_each<F>(self, f: F)
where F: FnMut(&'a mut T),

Calls a closure on each element of a bulk in reverse.
Source§

fn try_rev_for_each<F, R>(self, f: F) -> R
where &'a mut T:, F: FnMut(&'a mut T) -> R, R: Try<Output = ()>,

A bulk method that applies a fallible function to each item in the bulk in reverse, stopping at the first error and returning that error.
Source§

impl<'a, T> IntoIterator for BulkMut<'a, T>
where T: 'a, &'a mut [T]: IntoIterator,

Source§

type Item = <&'a mut [T] as IntoIterator>::Item

The type of the elements being iterated over.
Source§

type IntoIter = <&'a mut [T] as IntoIterator>::IntoIter

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<'a, T, L> SplitBulk<L> for BulkMut<'a, T>
where L: LengthValue,

Source§

type Left = BulkMut<'a, T>

Source§

type Right = BulkMut<'a, T>

Source§

fn split_at(bulk: Self, n: L) -> (Self::Left, Self::Right)
where Self: Sized,

Splits a bulk in two at a specified index. Read more

Auto Trait Implementations§

§

impl<'a, T> !UnwindSafe for BulkMut<'a, T>

§

impl<'a, T> Freeze for BulkMut<'a, T>

§

impl<'a, T> RefUnwindSafe for BulkMut<'a, T>
where T: RefUnwindSafe,

§

impl<'a, T> Send for BulkMut<'a, T>
where T: Send,

§

impl<'a, T> Sync for BulkMut<'a, T>
where T: Sync,

§

impl<'a, T> Unpin for BulkMut<'a, T>

§

impl<'a, T> UnsafeUnpin for BulkMut<'a, T>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<C, F> Curry<C> for F

Source§

type Output = Curried<(C,), (), F>

Source§

fn curry_once(self, arg: C) -> <F as Curry<C>>::Output

Source§

fn curry_mut(&mut self, arg: C) -> <&mut Self as Curry<C>>::Output

Source§

fn curry(&self, arg: C) -> <&Self as Curry<C>>::Output

Source§

impl<T, B> EitherIntoBulk<B> for T
where T: EitherIntoBulk<B>, <T as EitherIntoBulk<B>>::EitherIntoBulk: IntoBulk, B: IntoIterator,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, A, I> IntoBulk for T
where T: IntoIterator<Item = A, IntoIter = I>, I: ExactSizeIterator<Item = A>,

Source§

type IntoBulk = Bulk<T>

Which kind of bulk are we turning this into?
Source§

default fn into_bulk(self) -> <T as IntoBulk>::IntoBulk

Creates a bulk from a value. Read more
Source§

impl<T> IntoBulk for T
where T: Bulk,

Source§

type IntoBulk = T

Which kind of bulk are we turning this into?
Source§

fn into_bulk(self) -> <T as IntoBulk>::IntoBulk

Creates a bulk from a value. Read more
Source§

impl<T, B> IntoContainedBy<B> for T
where T: IntoContained + EitherIntoBulk<B>, B: IntoIterator,

Source§

impl<C, F> RCurry<C> for F

Source§

type Output = Curried<(), (C,), F>

Source§

fn rcurry_once(self, arg: C) -> <F as RCurry<C>>::Output

Source§

fn rcurry_mut(&mut self, arg: C) -> <&mut Self as RCurry<C>>::Output

Source§

fn rcurry(&self, arg: C) -> <&Self as RCurry<C>>::Output

Source§

impl<U> Same for U

Source§

fn same<T>(self) -> Result<T, U>

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.