pub struct FSharpFunction {
pub name: String,
pub is_recursive: bool,
pub is_inline: bool,
pub params: Vec<(String, Option<FSharpType>)>,
pub return_type: Option<FSharpType>,
pub body: FSharpExpr,
pub doc: Option<String>,
pub type_params: Vec<String>,
}Expand description
A top-level F# function or value definition.
Fields§
§name: StringFunction name (lowercase by convention)
is_recursive: boolWhether this is a let rec definition
is_inline: boolWhether this is a let inline definition
params: Vec<(String, Option<FSharpType>)>Parameters: (name, optional_type_annotation)
return_type: Option<FSharpType>Return type annotation (optional)
body: FSharpExprFunction body expression
doc: Option<String>Optional XML doc comment
type_params: Vec<String>Generic type parameters (e.g. ["'a", "'b"])
Trait Implementations§
Source§impl Clone for FSharpFunction
impl Clone for FSharpFunction
Source§fn clone(&self) -> FSharpFunction
fn clone(&self) -> FSharpFunction
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for FSharpFunction
impl RefUnwindSafe for FSharpFunction
impl Send for FSharpFunction
impl Sync for FSharpFunction
impl Unpin for FSharpFunction
impl UnsafeUnpin for FSharpFunction
impl UnwindSafe for FSharpFunction
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