#[repr(C)]pub struct NonAtomic(Cell<usize>);
Expand description
A marker of a non-atomic tendril.
This is the default for the second type parameter of a Tendril
and so doesn’t typically need to be written.
This is akin to using Rc
for reference counting.
Tuple Fields§
§0: Cell<usize>
Trait Implementations§
source§impl<Sink: TreeSink> TendrilSink<UTF8, NonAtomic> for Parser<Sink>
impl<Sink: TreeSink> TendrilSink<UTF8, NonAtomic> for Parser<Sink>
source§fn process(&mut self, t: StrTendril)
fn process(&mut self, t: StrTendril)
Process this tendril.
source§fn one<T>(self, t: T) -> Self::Outputwhere
Self: Sized,
T: Into<Tendril<F, A>>,
fn one<T>(self, t: T) -> Self::Outputwhere Self: Sized, T: Into<Tendril<F, A>>,
Process one tendril and finish.
source§fn from_iter<I>(self, i: I) -> Self::Outputwhere
Self: Sized,
I: IntoIterator,
<I as IntoIterator>::Item: Into<Tendril<F, A>>,
fn from_iter<I>(self, i: I) -> Self::Outputwhere Self: Sized, I: IntoIterator, <I as IntoIterator>::Item: Into<Tendril<F, A>>,
Consume an iterator of tendrils, processing each item, then finish.
impl Atomicity for NonAtomic
Auto Trait Implementations§
impl !RefUnwindSafe for NonAtomic
impl Send for NonAtomic
impl !Sync for NonAtomic
impl Unpin for NonAtomic
impl UnwindSafe for NonAtomic
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