pub struct ChainInit<I, F, T: ?Sized, E>(/* private fields */);Expand description
An initializer returned by Init::chain.
Trait Implementations§
Source§impl<T: ?Sized, E, I, F> Init<T, E> for ChainInit<I, F, T, E>where
I: Init<T, E>,
F: FnOnce(&mut T) -> Result<(), E>,
impl<T: ?Sized, E, I, F> Init<T, E> for ChainInit<I, F, T, E>where
I: Init<T, E>,
F: FnOnce(&mut T) -> Result<(), E>,
Source§impl<T: ?Sized, E, I, F> PinInit<T, E> for ChainInit<I, F, T, E>where
I: Init<T, E>,
F: FnOnce(&mut T) -> Result<(), E>,
impl<T: ?Sized, E, I, F> PinInit<T, E> for ChainInit<I, F, T, E>where
I: Init<T, E>,
F: FnOnce(&mut T) -> Result<(), E>,
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), E>
unsafe fn __pinned_init(self, slot: *mut T) -> 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, F, T, E> Freeze for ChainInit<I, F, T, E>where
I: Freeze,
F: Freeze,
T: ?Sized,
impl<I, F, T, E> RefUnwindSafe for ChainInit<I, F, T, E>where
I: RefUnwindSafe,
F: RefUnwindSafe,
T: ?Sized,
impl<I, F, T, E> Send for ChainInit<I, F, T, E>where
I: Send,
F: Send,
T: ?Sized,
impl<I, F, T, E> Sync for ChainInit<I, F, T, E>where
I: Sync,
F: Sync,
T: ?Sized,
impl<I, F, T, E> Unpin for ChainInit<I, F, T, E>where
I: Unpin,
F: Unpin,
T: ?Sized,
impl<I, F, T, E> UnsafeUnpin for ChainInit<I, F, T, E>where
I: UnsafeUnpin,
F: UnsafeUnpin,
T: ?Sized,
impl<I, F, T, E> UnwindSafe for ChainInit<I, F, T, E>where
I: UnwindSafe,
F: UnwindSafe,
T: ?Sized,
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