pub struct KCellInit<I, Class>(/* private fields */);Expand description
Initializer for KCell.
Trait Implementations§
Source§impl<T, Class, I, E> PinInit<KCell<T, Class>, E> for KCellInit<I, Class>where
I: PinInit<T, E>,
impl<T, Class, I, E> PinInit<KCell<T, Class>, E> for KCellInit<I, Class>where
I: PinInit<T, E>,
Source§unsafe fn __pinned_init(self, slot: *mut KCell<T, Class>) -> Result<(), E>
unsafe fn __pinned_init(self, slot: *mut KCell<T, Class>) -> Result<(), E>
Initializes
slot. Read moreSource§fn pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E>where
F: FnOnce(Pin<&mut T>) -> Result<(), E>,
fn pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E>where
F: FnOnce(Pin<&mut T>) -> Result<(), E>,
First initializes the value using
self then calls the function f with the initialized
value. Read moreAuto Trait Implementations§
impl<I, Class> Freeze for KCellInit<I, Class>where
I: Freeze,
impl<I, Class> RefUnwindSafe for KCellInit<I, Class>where
I: RefUnwindSafe,
Class: RefUnwindSafe,
impl<I, Class> Send for KCellInit<I, Class>where
I: Send,
Class: Send,
impl<I, Class> Sync for KCellInit<I, Class>where
I: Sync,
Class: Sync,
impl<I, Class> Unpin for KCellInit<I, Class>where
I: Unpin,
Class: Unpin,
impl<I, Class> UnsafeUnpin for KCellInit<I, Class>where
I: UnsafeUnpin,
impl<I, Class> UnwindSafe for KCellInit<I, Class>where
I: UnwindSafe,
Class: UnwindSafe,
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
Source§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot. Read moreSource§fn pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E>where
F: FnOnce(Pin<&mut T>) -> Result<(), E>,
fn pin_chain<F>(self, f: F) -> ChainPinInit<Self, F, T, E>where
F: FnOnce(Pin<&mut T>) -> Result<(), E>,
First initializes the value using
self then calls the function f with the initialized
value. Read more