[][src]Struct refloctopus::ShapedOutputLocation

pub struct ShapedOutputLocation<'data, 'visitor, 'fields> { /* fields omitted */ }

A destination in memory with a known eventual type.

These are the "places" that Db::deserialize_in_place can deserialize into. Nothing about the type is assumed to be initialized until deserialization is complete. ⚠️ If deserialization fails, any intermediate owned values will be leaked. ⚠️

SAFETY: the type must always match the actual content of the memory! The easiest way to ensure this is to only use the From impls that work on references to any type that implements Reflect to construct locations.

Implementations

impl<'data, 'visitor, 'fields> ShapedOutputLocation<'data, 'visitor, 'fields>[src]

pub unsafe fn new(
    shape: &'visitor DataShape<'visitor>,
    fields: &'visitor FieldsCursor<'fields>,
    ptr: *mut u8
) -> Self
[src]

Prepare to deserialize a value of typ into ptr.

Safety

If ptr doesn't point to a large-enough region, then eventually deserialization is going to write a bunch of data into a suspect location.

Auto Trait Implementations

impl<'data, 'visitor, 'fields> !RefUnwindSafe for ShapedOutputLocation<'data, 'visitor, 'fields>[src]

impl<'data, 'visitor, 'fields> !Send for ShapedOutputLocation<'data, 'visitor, 'fields>[src]

impl<'data, 'visitor, 'fields> !Sync for ShapedOutputLocation<'data, 'visitor, 'fields>[src]

impl<'data, 'visitor, 'fields> Unpin for ShapedOutputLocation<'data, 'visitor, 'fields> where
    'fields: 'visitor, 
[src]

impl<'data, 'visitor, 'fields> !UnwindSafe for ShapedOutputLocation<'data, 'visitor, 'fields>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erasable for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.