pub struct Wrapper<Codec, T>where
T: TypedArray,{
pub typed_array: T,
/* private fields */
}Expand description
Wrapper over typed arrays.
Used to implement IntoTransferable/FromTransferable with wrapper::Context for the use in structs/enums using IntoTransferable derive.
Fields§
§typed_array: TWrapped TypedArray.
Trait Implementations§
Source§impl<C, T> Transferable for Wrapper<C, T>where
C: Codec,
T: TypedArray,
impl<C, T> Transferable for Wrapper<C, T>where
C: Codec,
T: TypedArray,
Source§fn prepare_for_transfer(
self,
_context: &mut Self::Context,
) -> Result<WithTransferable, Self::Error>
fn prepare_for_transfer( self, _context: &mut Self::Context, ) -> Result<WithTransferable, Self::Error>
Convert into WithTransferable.
Auto Trait Implementations§
impl<Codec, T> Freeze for Wrapper<Codec, T>
impl<Codec, T> RefUnwindSafe for Wrapper<Codec, T>
impl<Codec, T> Send for Wrapper<Codec, T>
impl<Codec, T> Sync for Wrapper<Codec, T>
impl<Codec, T> Unpin for Wrapper<Codec, T>
impl<Codec, T> UnsafeUnpin for Wrapper<Codec, T>
impl<Codec, T> UnwindSafe for Wrapper<Codec, T>
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