pub struct ChildCursor<N> { /* private fields */ }Expand description
Single-pass field selection used only by generated reconstruction code.
Implementations§
Source§impl<N: ExternalCstNode> ChildCursor<N>
impl<N: ExternalCstNode> ChildCursor<N>
pub fn new(parent: &N) -> Self
pub fn required_field( &mut self, field: &'static str, ) -> Result<N, ReconstructError>
pub fn optional_field(&mut self, field: &'static str) -> Option<N>
pub fn repeated_field(&mut self, field: &'static str) -> Vec<N>
pub fn required_matching<T>(&mut self) -> Result<N, ReconstructError>where
T: Reconstruct<N>,
pub fn optional_matching<T>(&mut self) -> Option<N>where
T: Reconstruct<N>,
pub fn repeated_matching<T>(&mut self) -> Vec<N>where
T: Reconstruct<N>,
Auto Trait Implementations§
impl<N> Freeze for ChildCursor<N>
impl<N> RefUnwindSafe for ChildCursor<N>where
N: RefUnwindSafe,
impl<N> Send for ChildCursor<N>where
N: Send,
impl<N> Sync for ChildCursor<N>where
N: Sync,
impl<N> Unpin for ChildCursor<N>where
N: Unpin,
impl<N> UnsafeUnpin for ChildCursor<N>
impl<N> UnwindSafe for ChildCursor<N>where
N: UnwindSafe,
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