pub struct GmManualFunction {
pub name: String,
pub parameters: Vec<GmManualFunctionParameter>,
pub required_parameters: usize,
pub is_variadic: bool,
pub example: String,
pub description: String,
pub returns: String,
pub link: Url,
}
Expand description
A function scraped from the Gm Manual.
Fields§
§name: String
The name of the function
parameters: Vec<GmManualFunctionParameter>
The parameters of the function.
required_parameters: usize
The count of the number of required parameters.
is_variadic: bool
By variadic
, we mean if the final parameter can take “infinite” arguments. Examples
are ds_list_add
, where users can invoke it as ds_list_add(list, index, 1, 2, 3, 4 /* etc */);
example: String
The example given in the Manual.
description: String
The description of what the function does.
returns: String
What the function returns.
link: Url
The link to the webpage.
Trait Implementations§
Source§impl Clone for GmManualFunction
impl Clone for GmManualFunction
Source§fn clone(&self) -> GmManualFunction
fn clone(&self) -> GmManualFunction
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GmManualFunction
impl Debug for GmManualFunction
Source§impl<'de> Deserialize<'de> for GmManualFunction
impl<'de> Deserialize<'de> for GmManualFunction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for GmManualFunction
impl Ord for GmManualFunction
Source§fn cmp(&self, other: &GmManualFunction) -> Ordering
fn cmp(&self, other: &GmManualFunction) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GmManualFunction
impl PartialEq for GmManualFunction
Source§impl PartialOrd for GmManualFunction
impl PartialOrd for GmManualFunction
Source§impl Serialize for GmManualFunction
impl Serialize for GmManualFunction
impl Eq for GmManualFunction
impl StructuralPartialEq for GmManualFunction
Auto Trait Implementations§
impl Freeze for GmManualFunction
impl RefUnwindSafe for GmManualFunction
impl Send for GmManualFunction
impl Sync for GmManualFunction
impl Unpin for GmManualFunction
impl UnwindSafe for GmManualFunction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more