[][src]Struct rhai::ModuleRef

pub struct ModuleRef(_, _);

[INTERNALS] A chain of module names to qualify a variable or function call. Exported under the internals feature only.

A u64 hash key is cached for quick search purposes.

A StaticVec is used because most module-level access contains only one level, and it is wasteful to always allocate a Vec with one element.

WARNING

This type is volatile and may change.

Trait Implementations

impl Clone for ModuleRef[src]

impl Debug for ModuleRef[src]

impl Default for ModuleRef[src]

impl Deref for ModuleRef[src]

type Target = StaticVec<(String, Position)>

The resulting type after dereferencing.

impl DerefMut for ModuleRef[src]

impl Display for ModuleRef[src]

impl Eq for ModuleRef[src]

impl From<SmallVec<[(String, Position); 4]>> for ModuleRef[src]

impl Hash for ModuleRef[src]

impl PartialEq<ModuleRef> for ModuleRef[src]

impl StructuralEq for ModuleRef[src]

impl StructuralPartialEq for ModuleRef[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> 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.