Struct xml5ever::tendril::SendTendril [−]
pub struct SendTendril<F> where
F: Format, { /* fields omitted */ }
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)
.
Trait Implementations
impl<F> Clone for SendTendril<F> where
F: Clone + Format,
impl<F> Clone for SendTendril<F> where
F: Clone + Format,
pub fn clone(&self) -> SendTendril<F>
pub fn clone(&self) -> SendTendril<F>
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl<F, A> From<SendTendril<F>> for Tendril<F, A> where
F: Format,
A: Atomicity,
impl<F, A> From<SendTendril<F>> for Tendril<F, A> where
F: Format,
A: Atomicity,
impl<F, A> From<Tendril<F, A>> for SendTendril<F> where
F: Format,
A: Atomicity,
impl<F, A> From<Tendril<F, A>> for SendTendril<F> where
F: Format,
A: Atomicity,
pub fn from(tendril: Tendril<F, A>) -> SendTendril<F>
pub fn from(tendril: Tendril<F, A>) -> SendTendril<F>
Performs the conversion.
impl<F> Send for SendTendril<F> where
F: Format,
Auto Trait Implementations
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
Mutably borrows from an owned value. Read more