Struct tendril::SendTendril
source · pub struct SendTendril<F>where
F: Format,{
tendril: Tendril<F>,
}
Expand description
A simple wrapper to make Tendril
Send
.
Although there is a certain subset of the operations on a Tendril
that a SendTendril
could
reasonably implement, in order to clearly separate concerns this type is deliberately
minimalist, acting as a safe encapsulation around the invariants which permit Send
ness and
behaving as an opaque object.
A SendTendril
may be produced by Tendril.into_send()
or SendTendril::from(tendril)
,
and may be returned to a Tendril
by Tendril::from(self)
.
Fields§
§tendril: Tendril<F>
Trait Implementations§
source§impl<F> Clone for SendTendril<F>
impl<F> Clone for SendTendril<F>
source§fn clone(&self) -> SendTendril<F>
fn clone(&self) -> SendTendril<F>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<F, A> From<SendTendril<F>> for Tendril<F, A>
impl<F, A> From<SendTendril<F>> for Tendril<F, A>
source§fn from(send: SendTendril<F>) -> Tendril<F, A>
fn from(send: SendTendril<F>) -> Tendril<F, A>
Converts to this type from the input type.
source§impl<F, A> From<Tendril<F, A>> for SendTendril<F>
impl<F, A> From<Tendril<F, A>> for SendTendril<F>
source§fn from(tendril: Tendril<F, A>) -> SendTendril<F>
fn from(tendril: Tendril<F, A>) -> SendTendril<F>
Converts to this type from the input type.
impl<F> Send for SendTendril<F>where
F: Format,
Auto Trait Implementations§
impl<F> !Freeze for SendTendril<F>
impl<F> !RefUnwindSafe for SendTendril<F>
impl<F> !Sync for SendTendril<F>
impl<F> Unpin for SendTendril<F>
impl<F> UnwindSafe for SendTendril<F>where
F: RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)