[][src]Struct runestick::Protocol

pub struct Protocol {
    pub name: &'static str,
    pub hash: Hash,
}

A built in instance function.

Fields

name: &'static str

The name of the builtin function.

hash: Hash

The hash of the builtin function.

Implementations

impl Protocol[src]

pub const EQ: Protocol[src]

Check two types for equality.

pub const GET: Protocol[src]

The function to access a field.

pub const SET: Protocol[src]

The function to set a field.

pub const INDEX_GET: Protocol[src]

The function to access an index.

pub const INDEX_SET: Protocol[src]

The function to set an index.

pub const ADD: Protocol[src]

The function to implement for the addition operation.

pub const ADD_ASSIGN: Protocol[src]

The function to implement for the addition assign operation.

pub const SUB: Protocol[src]

The function to implement for the subtraction operation.

pub const SUB_ASSIGN: Protocol[src]

The function to implement for the subtraction assign operation.

pub const MUL: Protocol[src]

The function to implement for the multiply operation.

pub const MUL_ASSIGN: Protocol[src]

The function to implement for the multiply assign operation.

pub const DIV: Protocol[src]

The function to implement for the division operation.

pub const DIV_ASSIGN: Protocol[src]

The function to implement for the division assign operation.

pub const REM: Protocol[src]

The function to implement for the remainder operation.

pub const REM_ASSIGN: Protocol[src]

The function to implement for the remainder assign operation.

pub const BIT_AND: Protocol[src]

The function to implement for the bitwise and operation.

pub const BIT_AND_ASSIGN: Protocol[src]

The function to implement for the bitwise and assign operation.

pub const BIT_XOR: Protocol[src]

The function to implement for the bitwise xor operation.

pub const BIT_XOR_ASSIGN: Protocol[src]

The function to implement for the bitwise xor assign operation.

pub const BIT_OR: Protocol[src]

The function to implement for the bitwise or operation.

pub const BIT_OR_ASSIGN: Protocol[src]

The function to implement for the bitwise xor assign operation.

pub const SHL: Protocol[src]

The function to implement for the bitwise shift left operation.

pub const SHL_ASSIGN: Protocol[src]

The function to implement for the bitwise shift left assign operation.

pub const SHR: Protocol[src]

The function to implement for the bitwise shift right operation.

pub const SHR_ASSIGN: Protocol[src]

The function to implement for the bitwise shift right assign operation.

pub const STRING_DISPLAY: Protocol[src]

Protocol function used by template strings.

pub const STRING_DEBUG: Protocol[src]

Protocol function used by custom debug impls.

pub const INTO_ITER: Protocol[src]

Function used to convert an argument into an iterator.

pub const NEXT: Protocol[src]

The function to call to continue iteration.

pub const INTO_FUTURE: Protocol[src]

Function used to convert an argument into a future.

pub const INTO_TYPE_NAME: Protocol[src]

Function used to convert an argument into a future.

Methods from Deref<Target = Hash>

Trait Implementations

impl Clone for Protocol[src]

impl Copy for Protocol[src]

impl Debug for Protocol[src]

impl Deref for Protocol[src]

type Target = Hash

The resulting type after dereferencing.

impl Display for Protocol[src]

impl Eq for Protocol[src]

impl Hash for Protocol[src]

impl InstFnNameHash for Protocol[src]

impl IntoTypeHash for Protocol[src]

impl PartialEq<Protocol> for Protocol[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> CallHasher for T where
    T: Hash

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.