Struct ViewNested

Source
pub struct ViewNested<'a, Id, Record> { /* private fields */ }

Implementations§

Source§

impl<'a, Id, Record> ViewNested<'a, Id, Record>

Source

pub fn then<NextId, NextRecord>( &self, next: impl FnOnce(&Record) -> NextId, ) -> ViewNested<'a, NextId, NextRecord>
where NextId: Copy, FederatedGraph: Index<NextId, Output = NextRecord>,

Continue navigating with the next ID.

Methods from Deref<Target = View<Id, &'a Record>>§

Source

pub fn id(&self) -> Id

Trait Implementations§

Source§

impl<Id, Record> AsRef<Record> for ViewNested<'_, Id, Record>

Source§

fn as_ref(&self) -> &Record

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<'a, Id, Record> AsRef<View<Id, &'a Record>> for ViewNested<'a, Id, Record>

Source§

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>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Debug for ViewNested<'_, ScalarDefinitionId, ScalarDefinitionRecord>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a, Id, Record> Deref for ViewNested<'a, Id, Record>

Source§

type Target = View<Id, &'a Record>

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.

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>
where Id: Send, Record: Sync,

§

impl<'a, Id, Record> Sync for ViewNested<'a, Id, Record>
where Id: Sync, Record: Sync,

§

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> 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> 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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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 more
Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> Source for T
where T: Deref, <T as Deref>::Target: Source,

Source§

type Slice<'a> = <<T as Deref>::Target as Source>::Slice<'a> where T: 'a

A type this Source can be sliced into.
Source§

fn len(&self) -> usize

Length of the source
Source§

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 more
Source§

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<'_>>

Get a slice of the source at given range. This is analogous to slice::get(range). Read more
Source§

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
Source§

fn is_boundary(&self, index: usize) -> bool

Check if index is valid for this Source, that is: Read more
Source§

fn find_boundary(&self, index: usize) -> usize

For &str sources attempts to find the closest char boundary at which source can be sliced, starting from index. Read more
Source§

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

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.