Struct rhai::ScriptFnMetadata [−][src]
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]
fn clone(&self) -> ScriptFnMetadata<'a>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'a> Into<ScriptFnMetadata<'a>> for &'a ScriptFnDef
[src]
fn into(self) -> ScriptFnMetadata<'a>
[src]
impl<'a> PartialEq<ScriptFnMetadata<'a>> for ScriptFnMetadata<'a>
[src]
fn eq(&self, other: &ScriptFnMetadata<'a>) -> bool
[src]
fn ne(&self, other: &ScriptFnMetadata<'a>) -> bool
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow(&self) -> &TⓘNotable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
[src]
Notable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut TⓘNotable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
[src]
Notable traits for &'_ mut R
impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, F> Future for &'_ mut F where
F: Future + Unpin + ?Sized, type Output = <F as Future>::Output;impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
impl<T> CallHasher for T where
T: Hash + ?Sized,
[src]
T: Hash + ?Sized,
pub default fn get_hash<H, B>(value: &H, build_hasher: &B) -> u64 where
H: Hash + ?Sized,
B: BuildHasher,
[src]
H: Hash + ?Sized,
B: BuildHasher,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,