Skip to main content

Nested

Struct Nested 

Source
pub struct Nested<'d, T: Decode<C>, C: Copy = ()> { /* private fields */ }
Expand description

Cooperative materialization of a JSON array whose elements are generated JSON objects.

Implementations§

Source§

impl<'d, T: Decode> Nested<'d, T>

Source

pub fn one(input: Shared) -> Result<Self, Error>

Source

pub fn new<I, O>(input: I) -> Result<Self, Error>
where I: IntoIterator<Item = O>, I::IntoIter: ExactSizeIterator, Shared<'d>: From<O>,

Source§

impl<'d, T: Decode<C>, C: Copy> Nested<'d, T, C>

Source

pub fn admitted(input: Admitted<'d>, context: C) -> Self

Source

pub fn release(&mut self, budget: &mut usize) -> Poll<()>

Source

pub fn step(self, budget: NonZero<usize>) -> Outcome<'d, Self, Vec<T>>

Auto Trait Implementations§

§

impl<'d, T, C = ()> !RefUnwindSafe for Nested<'d, T, C>

§

impl<'d, T, C = ()> !Send for Nested<'d, T, C>

§

impl<'d, T, C = ()> !Sync for Nested<'d, T, C>

§

impl<'d, T, C = ()> !UnwindSafe for Nested<'d, T, C>

§

impl<'d, T, C> Forget for Nested<'d, T, C>

§

impl<'d, T, C> Freeze for Nested<'d, T, C>
where State<'d, T, C>: Freeze, C: Freeze, Vec<T>: Freeze,

§

impl<'d, T, C> Unpin for Nested<'d, T, C>
where State<'d, T, C>: Unpin, C: Unpin, Vec<T>: Unpin,

§

impl<'d, T, C> UnsafeUnpin for Nested<'d, T, C>
where State<'d, T, C>: UnsafeUnpin, C: UnsafeUnpin, Vec<T>: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> Convert<T> for T

Source§

fn into(self) -> T

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.