Struct rhai::ScriptFnMetadata[][src]

pub struct ScriptFnMetadata<'a> {
    pub comments: Vec<&'a str>,
    pub access: FnAccess,
    pub name: &'a str,
    pub params: Vec<&'a str>,
}

A type containing the metadata of a script-defined function. Not available under no_function.

Created by AST::iter_functions.

Fields

comments: Vec<&'a str>

Function doc-comments (if any).

Block doc-comments are kept in a single string slice with line-breaks within.

Line doc-comments are kept in one string slice per line without the termination line-break.

Leading white-spaces are stripped, and each string slice always starts with the corresponding doc-comment leader: /// or /**.

access: FnAccess

Function access mode.

name: &'a str

Function name.

params: Vec<&'a str>

Function parameters (if any).

Trait Implementations

impl<'a> Clone for ScriptFnMetadata<'a>[src]

impl<'a> Debug for ScriptFnMetadata<'a>[src]

impl Display for ScriptFnMetadata<'_>[src]

impl<'a> Eq for ScriptFnMetadata<'a>[src]

impl<'a> Hash for ScriptFnMetadata<'a>[src]

impl<'a> Into<ScriptFnMetadata<'a>> for &'a ScriptFnDef[src]

impl<'a> PartialEq<ScriptFnMetadata<'a>> for ScriptFnMetadata<'a>[src]

impl<'a> StructuralEq for ScriptFnMetadata<'a>[src]

impl<'a> StructuralPartialEq for ScriptFnMetadata<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for ScriptFnMetadata<'a>

impl<'a> Send for ScriptFnMetadata<'a>

impl<'a> Sync for ScriptFnMetadata<'a>

impl<'a> Unpin for ScriptFnMetadata<'a>

impl<'a> UnwindSafe for ScriptFnMetadata<'a>

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