[][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

One(IndexKind)

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]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<PointerKind> for PointerKind[src]

impl Copy for PointerKind[src]

impl Eq for PointerKind[src]

impl Debug for PointerKind[src]

impl Hash for PointerKind[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Erased for T

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]