pub struct FSharpUnion {
pub name: String,
pub type_params: Vec<String>,
pub cases: Vec<FSharpUnionCase>,
pub doc: Option<String>,
}Expand description
A discriminated union declaration: type T = | A | B of int.
Fields§
§name: StringType name
type_params: Vec<String>Generic type parameters
cases: Vec<FSharpUnionCase>Constructor cases
doc: Option<String>Optional XML doc comment
Trait Implementations§
Source§impl Clone for FSharpUnion
impl Clone for FSharpUnion
Source§fn clone(&self) -> FSharpUnion
fn clone(&self) -> FSharpUnion
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 FSharpUnion
impl RefUnwindSafe for FSharpUnion
impl Send for FSharpUnion
impl Sync for FSharpUnion
impl Unpin for FSharpUnion
impl UnsafeUnpin for FSharpUnion
impl UnwindSafe for FSharpUnion
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