pub struct ViewNested<'a, Id, Record> { /* private fields */ }
Implementations§
Source§impl<'a, Id, Record> ViewNested<'a, Id, Record>
impl<'a, Id, Record> ViewNested<'a, Id, Record>
Sourcepub fn then<NextId, NextRecord>(
&self,
next: impl FnOnce(&Record) -> NextId,
) -> ViewNested<'a, NextId, NextRecord>
pub fn then<NextId, NextRecord>( &self, next: impl FnOnce(&Record) -> NextId, ) -> ViewNested<'a, NextId, NextRecord>
Continue navigating with the next ID.
Trait Implementations§
Source§impl<Id, Record> AsRef<Record> for ViewNested<'_, Id, Record>
impl<Id, Record> AsRef<Record> for ViewNested<'_, Id, Record>
Source§impl<'a, Id, Record> AsRef<View<Id, &'a Record>> for ViewNested<'a, Id, Record>
impl<'a, Id, Record> AsRef<View<Id, &'a Record>> for ViewNested<'a, Id, Record>
Source§fn as_ref(&self) -> &View<Id, &'a Record>
fn as_ref(&self) -> &View<Id, &'a Record>
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Debug for ViewNested<'_, EnumDefinitionId, EnumDefinitionRecord>
impl Debug for ViewNested<'_, EnumDefinitionId, EnumDefinitionRecord>
Source§impl Debug for ViewNested<'_, ScalarDefinitionId, ScalarDefinitionRecord>
impl Debug for ViewNested<'_, ScalarDefinitionId, ScalarDefinitionRecord>
Auto Trait Implementations§
impl<'a, Id, Record> Freeze for ViewNested<'a, Id, Record>where
Id: Freeze,
impl<'a, Id, Record> RefUnwindSafe for ViewNested<'a, Id, Record>where
Id: RefUnwindSafe,
Record: RefUnwindSafe,
impl<'a, Id, Record> Send for ViewNested<'a, Id, Record>
impl<'a, Id, Record> Sync for ViewNested<'a, Id, Record>
impl<'a, Id, Record> Unpin for ViewNested<'a, Id, Record>where
Id: Unpin,
impl<'a, Id, Record> UnwindSafe for ViewNested<'a, Id, Record>where
Id: UnwindSafe,
Record: 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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Source for T
impl<T> Source for T
Source§type Slice<'a> = <<T as Deref>::Target as Source>::Slice<'a>
where
T: 'a
type Slice<'a> = <<T as Deref>::Target as Source>::Slice<'a> where T: 'a
A type this
Source
can be sliced into.Source§fn read<'a, Chunk>(&'a self, offset: usize) -> Option<Chunk>where
Chunk: Chunk<'a>,
fn read<'a, Chunk>(&'a self, offset: usize) -> Option<Chunk>where
Chunk: Chunk<'a>,
Read a chunk of bytes into an array. Returns
None
when reading
out of bounds would occur. Read moreSource§unsafe fn read_byte_unchecked(&self, offset: usize) -> u8
unsafe fn read_byte_unchecked(&self, offset: usize) -> u8
Read a byte without doing bounds checks. Read more
Source§fn slice(&self, range: Range<usize>) -> Option<<T as Source>::Slice<'_>>
fn slice(&self, range: Range<usize>) -> Option<<T as Source>::Slice<'_>>
Get a slice of the source at given range. This is analogous to
slice::get(range)
. Read moreSource§unsafe fn slice_unchecked(
&self,
range: Range<usize>,
) -> <T as Source>::Slice<'_>
unsafe fn slice_unchecked( &self, range: Range<usize>, ) -> <T as Source>::Slice<'_>
Get a slice of the source at given range. This is analogous to
slice::get_unchecked(range)
. Read more