Deep

Struct 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, const N: usize> DeserializeHelper<Deep> for [T; N]

Source§

type FullType = [T; N]

Source§

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

Source§

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

Safety Read more
Source§

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

Safety Read more
Source§

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

Source§

type FullType = Box<[T]>

Source§

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

Source§

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

Safety Read more
Source§

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

Safety Read more
Source§

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

Source§

type FullType = Vec<T>

Source§

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

Source§

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

Safety Read more
Source§

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

Safety Read more
Source§

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

Source§

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

Safety Read more
Source§

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

Source§

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

Safety Read more
Source§

impl<'a, T: DeepCopy + SerializeInner + TypeHash + AlignHash, I: ExactSizeIterator<Item = &'a T>> SerializeHelper<Deep> for SerIter<'a, T, I>

Source§

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

Safety Read more
Source§

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

Source§

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

Safety Read more

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>,

Source§

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>,

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.
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)