[][src]Struct darklua_core::rules::InjectGlobalValue

pub struct InjectGlobalValue { /* fields omitted */ }

A rule to replace global variables with values.

Implementations

impl InjectGlobalValue[src]

pub fn nil<S: Into<String>>(identifier: S) -> Self[src]

pub fn boolean<S: Into<String>>(identifier: S, value: bool) -> Self[src]

pub fn string<S: Into<String>>(identifier: S, value: S) -> Self[src]

pub fn float<S: Into<String>>(identifier: S, value: f64) -> Self[src]

Trait Implementations

impl Debug for InjectGlobalValue[src]

impl Default for InjectGlobalValue[src]

impl Eq for InjectGlobalValue[src]

impl PartialEq<InjectGlobalValue> for InjectGlobalValue[src]

impl Rule for InjectGlobalValue[src]

impl StructuralEq for InjectGlobalValue[src]

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