Skip to main content

PrimitiveView

Struct PrimitiveView 

Source
pub struct PrimitiveView<'a> { /* private fields */ }
Expand description

A graph-aware view of a primitive type.

Implementations§

Source§

impl<'a> PrimitiveView<'a>

Source

pub fn ty(&self) -> PrimitiveType

Returns the primitive type.

Trait Implementations§

Source§

impl<'a> Debug for PrimitiveView<'a>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for PrimitiveView<'a>

§

impl<'a> !RefUnwindSafe for PrimitiveView<'a>

§

impl<'a> Send for PrimitiveView<'a>

§

impl<'a> Sync for PrimitiveView<'a>

§

impl<'a> Unpin for PrimitiveView<'a>

§

impl<'a> UnsafeUnpin for PrimitiveView<'a>

§

impl<'a> !UnwindSafe for PrimitiveView<'a>

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<'a, T> ExtendableView<'a> for T
where T: ViewNode<'a>,

Source§

fn extensions(&self) -> &ViewExtensions<T>

Returns a reference to this type’s extended data.
Source§

fn extensions_mut(&mut self) -> &mut ViewExtensions<T>

Returns a mutable reference to this type’s extended data.
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<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.
Source§

impl<'a, T> View<'a> for T
where T: ViewNode<'a>,

Source§

fn inlines(&self) -> impl Iterator<Item = InlineTypeView<'a>> + use<'a, T>

Returns an iterator over all the inline types that are contained within this type.
Source§

fn used_by(&self) -> impl Iterator<Item = OperationView<'a>> + use<'a, T>

Returns an iterator over the operations that use this type. Read more
Source§

fn dependencies(&self) -> impl Iterator<Item = TypeView<'a>> + use<'a, T>

Returns an iterator over all the types that this type transitively depends on. This is forward propagation: this type depends on each reachable type. Read more
Source§

fn dependents(&self) -> impl Iterator<Item = TypeView<'a>> + use<'a, T>

Returns an iterator over all the types that transitively depend on this type. This is backward propagation: each returned type depends on this type. Read more
Source§

fn traverse<F>( &self, reach: Reach, filter: F, ) -> impl Iterator<Item = TypeView<'a>> + use<'a, T, F>
where F: Fn(EdgeKind, &TypeView<'a>) -> Traversal,

Traverses this type’s dependencies or dependents breadth-first, using filter to control which nodes are yielded and explored. Read more