pub struct IrOperationViewPath<'view, 'a>(/* private fields */);Expand description
A graph-aware view of operation’s path template and parameters.
Implementations§
Source§impl<'view, 'a> IrOperationViewPath<'view, 'a>
impl<'view, 'a> IrOperationViewPath<'view, 'a>
pub fn segments(self) -> Iter<'view, PathSegment<'a>>
Sourcepub fn params(
self,
) -> impl Iterator<Item = IrParameterView<'a, IrPathParameter>> + 'view
pub fn params( self, ) -> impl Iterator<Item = IrParameterView<'a, IrPathParameter>> + 'view
Returns an iterator over this operation’s path parameters.
Trait Implementations§
Source§impl<'view, 'a> Clone for IrOperationViewPath<'view, 'a>
impl<'view, 'a> Clone for IrOperationViewPath<'view, 'a>
Source§fn clone(&self) -> IrOperationViewPath<'view, 'a>
fn clone(&self) -> IrOperationViewPath<'view, 'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'view, 'a> Debug for IrOperationViewPath<'view, 'a>
impl<'view, 'a> Debug for IrOperationViewPath<'view, 'a>
impl<'view, 'a> Copy for IrOperationViewPath<'view, 'a>
Auto Trait Implementations§
impl<'view, 'a> Freeze for IrOperationViewPath<'view, 'a>
impl<'view, 'a> !RefUnwindSafe for IrOperationViewPath<'view, 'a>
impl<'view, 'a> Send for IrOperationViewPath<'view, 'a>
impl<'view, 'a> Sync for IrOperationViewPath<'view, 'a>
impl<'view, 'a> Unpin for IrOperationViewPath<'view, 'a>
impl<'view, 'a> !UnwindSafe for IrOperationViewPath<'view, 'a>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more