[−][src]Struct refloctopus::ShapedOutputLocation
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]
shape: &'visitor DataShape<'visitor>,
fields: &'visitor FieldsCursor<'fields>,
ptr: *mut u8
) -> Self
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]
'fields: 'visitor,
impl<'data, 'visitor, 'fields> !UnwindSafe for ShapedOutputLocation<'data, 'visitor, 'fields>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erasable for T
pub unsafe fn unerase(this: NonNull<Erased>) -> NonNull<T>
pub const ACK_1_1_0: bool
pub fn erase(this: NonNull<Self>) -> NonNull<Erased>
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,