Trait moveit::ctor::Ctor[][src]

#[must_use = "`Ctor`s do nothing until emplaced into storage"]
pub unsafe trait Ctor {
    type Output;
    unsafe fn ctor(self, dest: Pin<&mut MaybeUninit<Self::Output>>);
}

An in-place constructor for a particular type.

Safety

Ctor::ctor() must leave its destination argument in a valid, initialized state.

Associated Types

type Output[src]

The type to construct.

Loading content...

Required methods

unsafe fn ctor(self, dest: Pin<&mut MaybeUninit<Self::Output>>)[src]

Construct a new value using the arguments stored in self.

Safety

dest must be freshly-created memory; this function must not be used to mutate a previously-pinned pointer that has had self: Pin functions called on it.

Loading content...

Implementors

Loading content...