Struct rhai::FnHash[][src]

pub struct FnHash { /* fields omitted */ }

(INTERNALS) An set of function call hashes. Exported under the internals feature only.

Volatile Data Structure

This type is volatile and may change.

Implementations

impl FnHash[src]

pub fn from_native(hash: u64) -> Self[src]

Create a FnHash with only the native Rust hash.

pub fn from_script(hash: u64) -> Self[src]

Create a FnHash with both native Rust and script function hashes set to the same value.

pub fn from_script_and_native(script: u64, native: u64) -> Self[src]

Create a FnHash with both native Rust and script function hashes.

pub fn is_native_only(&self) -> bool[src]

Is this FnHash native Rust only?

pub fn script_hash(&self) -> u64[src]

Get the script function hash from this FnHash.

Panics

Panics if the FnHash is native Rust only.

pub fn native_hash(&self) -> u64[src]

Get the naive Rust function hash from this FnHash.

Trait Implementations

impl Clone for FnHash[src]

impl Copy for FnHash[src]

impl Debug for FnHash[src]

impl Default for FnHash[src]

impl Eq for FnHash[src]

impl Hash for FnHash[src]

impl PartialEq<FnHash> for FnHash[src]

impl StructuralEq for FnHash[src]

impl StructuralPartialEq for FnHash[src]

Auto Trait Implementations

impl RefUnwindSafe for FnHash

impl Send for FnHash

impl Sync for FnHash

impl Unpin for FnHash

impl UnwindSafe for FnHash

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 + ?Sized
[src]

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, 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.