Enum rhai_autodocs::function::Definition
source · pub enum Definition {
Function {
name: String,
args: Vec<Arg>,
return_type: Option<String>,
},
Operator {
name: String,
arg1: Arg,
arg2: Arg,
return_type: Option<String>,
},
Get {
target: Arg,
index: Arg,
return_type: Option<String>,
},
Set {
target: Arg,
index: Arg,
value: Arg,
},
IndexGet {
target: Arg,
index: Arg,
return_type: Option<String>,
},
IndexSet {
target: Arg,
index: Arg,
value: Arg,
},
}
Variants§
Implementations§
Auto Trait Implementations§
impl Freeze for Definition
impl RefUnwindSafe for Definition
impl Send for Definition
impl Sync for Definition
impl Unpin for Definition
impl UnwindSafe for Definition
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