Struct epserde::traits::copy_type::Deep

source ·
pub struct Deep {}
Expand description

An implementation of a CopySelector specifying that a type is deep-copy.

Trait Implementations§

source§

impl CopySelector for Deep

source§

const IS_ZERO_COPY: bool = false

source§

impl<T: DeepCopy + DeserializeInner + 'static, const N: usize> DeserializeHelper<Deep> for [T; N]

source§

impl<T: DeepCopy + DeserializeInner + 'static> DeserializeHelper<Deep> for Box<[T]>

§

type FullType = Box<[T]>

§

type DeserType<'a> = Box<[<T as DeserializeInner>::DeserType<'a>]>

source§

fn _deserialize_full_inner_impl(backend: &mut impl ReadWithPos) -> Result<Self>

source§

fn _deserialize_eps_inner_impl<'a>( backend: &mut SliceWithPos<'a> ) -> Result<<Self as DeserializeInner>::DeserType<'a>>

source§

impl<T: DeepCopy + DeserializeInner + 'static> DeserializeHelper<Deep> for Vec<T>

§

type FullType = Vec<T>

§

type DeserType<'a> = Vec<<T as DeserializeInner>::DeserType<'a>>

source§

fn _deserialize_full_inner_impl(backend: &mut impl ReadWithPos) -> Result<Self>

source§

fn _deserialize_eps_inner_impl<'a>( backend: &mut SliceWithPos<'a> ) -> Result<<Self as DeserializeInner>::DeserType<'a>>

source§

impl<T: DeepCopy + SerializeInner, const N: usize> SerializeHelper<Deep> for [T; N]

source§

fn _serialize_inner(&self, backend: &mut impl WriteWithNames) -> Result<()>

source§

impl<T: DeepCopy + SerializeInner> SerializeHelper<Deep> for Box<[T]>

source§

fn _serialize_inner(&self, backend: &mut impl WriteWithNames) -> Result<()>

source§

impl<T: DeepCopy + SerializeInner> SerializeHelper<Deep> for Vec<T>

source§

fn _serialize_inner(&self, backend: &mut impl WriteWithNames) -> Result<()>

Auto Trait Implementations§

§

impl Freeze for Deep

§

impl RefUnwindSafe for Deep

§

impl Send for Deep

§

impl Sync for Deep

§

impl Unpin for Deep

§

impl UnwindSafe for Deep

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<T> CastableFrom<T> for T

source§

fn cast_from(value: T) -> T

Call Self as W
source§

impl<T, U> CastableInto<U> for T
where U: CastableFrom<T>,

source§

fn cast(self) -> U

Call W::cast_from(self)
source§

impl<T> DowncastableFrom<T> for T

source§

fn downcast_from(value: T) -> T

Truncate the current UnsignedInt to a possibly smaller size
source§

impl<T, U> DowncastableInto<U> for T
where U: DowncastableFrom<T>,

source§

fn downcast(self) -> U

Call W::downcast_from(self)
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> Splat<T> for T

source§

fn splat(value: T) -> T

source§

impl<T> To<T> for T

source§

fn to(self) -> T

source§

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

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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.
source§

impl<T> UpcastableFrom<T> for T

source§

fn upcast_from(value: T) -> T

Extend the current UnsignedInt to a possibly bigger size.
source§

impl<T, U> UpcastableInto<U> for T
where U: UpcastableFrom<T>,

source§

fn upcast(self) -> U

Call W::upcast_from(self)