pub struct Identity;Expand description
The loader’s default transform: items are left as they are.
Trait Implementations§
impl Copy for Identity
Source§impl<In: Send + 'static> Transform<In> for Identity
impl<In: Send + 'static> Transform<In> for Identity
Source§fn apply(&self, _index: usize, item: In) -> Result<In>
fn apply(&self, _index: usize, item: In) -> Result<In>
Transform
item, the item at index. Called concurrently from several threads.Source§fn is_identity(&self) -> bool
fn is_identity(&self) -> bool
Whether
apply returns its input as is: the async path then applies
it where the item is fetched instead of handing it to the pool. Default: false.Auto Trait Implementations§
impl Forget for Identity
impl Freeze for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnsafeUnpin for Identity
impl UnwindSafe for Identity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more