pub struct FSharpMember {
pub name: String,
pub params: Vec<(String, Option<FSharpType>)>,
pub return_type: Option<FSharpType>,
pub body: FSharpExpr,
pub is_override: bool,
pub is_static: bool,
pub doc: Option<String>,
}Expand description
A member in an F# class or object expression.
Fields§
§name: StringMember name.
params: Vec<(String, Option<FSharpType>)>Parameters.
return_type: Option<FSharpType>Return type annotation.
body: FSharpExprBody expression.
is_override: boolWhether this is an override.
is_static: boolWhether this is static.
doc: Option<String>Optional doc comment.
Implementations§
Trait Implementations§
Source§impl Clone for FSharpMember
impl Clone for FSharpMember
Source§fn clone(&self) -> FSharpMember
fn clone(&self) -> FSharpMember
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 FSharpMember
impl RefUnwindSafe for FSharpMember
impl Send for FSharpMember
impl Sync for FSharpMember
impl Unpin for FSharpMember
impl UnsafeUnpin for FSharpMember
impl UnwindSafe for FSharpMember
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