pub struct FSharpClass {
pub name: String,
pub type_params: Vec<String>,
pub ctor_params: Vec<(String, FSharpType)>,
pub members: Vec<FSharpMember>,
pub implements: Vec<String>,
pub inherits: Option<String>,
pub doc: Option<String>,
pub attributes: Vec<FSharpAttribute>,
}Expand description
An F# class declaration.
Fields§
§name: StringClass name.
type_params: Vec<String>Generic type parameters.
ctor_params: Vec<(String, FSharpType)>Constructor parameters.
members: Vec<FSharpMember>Member methods.
implements: Vec<String>Interfaces this class implements.
inherits: Option<String>Optional base class.
doc: Option<String>Optional doc comment.
attributes: Vec<FSharpAttribute>Attributes on the class.
Implementations§
Trait Implementations§
Source§impl Clone for FSharpClass
impl Clone for FSharpClass
Source§fn clone(&self) -> FSharpClass
fn clone(&self) -> FSharpClass
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 FSharpClass
impl RefUnwindSafe for FSharpClass
impl Send for FSharpClass
impl Sync for FSharpClass
impl Unpin for FSharpClass
impl UnsafeUnpin for FSharpClass
impl UnwindSafe for FSharpClass
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