[][src]Enum solana_libra_invalid_mutations::bounds::PointerKind

pub enum PointerKind {
    One(IndexKind),
    Optional(IndexKind),
    Star(IndexKind),
}

Represents the number of pointers that exist out from a node of a particular kind.

Variants

Exactly one pointer out with this index kind as its destination.

Optional(IndexKind)

Zero or one pointer out with this index kind as its destination. Like the ? operator in regular expressions.

Star(IndexKind)

Zero or more pointers out with this index kind as its destination. Like the * operator in regular expressions.

Methods

impl PointerKind[src]

pub fn pointers_from(src_kind: IndexKind) -> &'static [PointerKind][src]

A list of what pointers (indexes) exist out from a particular kind of node within the module.

The only special case is FunctionDefinition, which contains a CodeUnit that can contain one of several kinds of pointers out. That is not represented in this table.

pub fn to_index_kind(self) -> IndexKind[src]

Trait Implementations

impl Clone for PointerKind[src]

impl Copy for PointerKind[src]

impl Debug for PointerKind[src]

impl Eq for PointerKind[src]

impl Hash for PointerKind[src]

impl PartialEq<PointerKind> for PointerKind[src]

impl StructuralEq for PointerKind[src]

impl StructuralPartialEq for PointerKind[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,