pub struct FSharpUnionCase {
pub name: String,
pub fields: Vec<FSharpType>,
}Expand description
A discriminated union case: | Case of T1 * T2.
Fields§
§name: StringConstructor name (must start with uppercase)
fields: Vec<FSharpType>Payload types (empty for constant constructors)
Trait Implementations§
Source§impl Clone for FSharpUnionCase
impl Clone for FSharpUnionCase
Source§fn clone(&self) -> FSharpUnionCase
fn clone(&self) -> FSharpUnionCase
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 FSharpUnionCase
impl RefUnwindSafe for FSharpUnionCase
impl Send for FSharpUnionCase
impl Sync for FSharpUnionCase
impl Unpin for FSharpUnionCase
impl UnsafeUnpin for FSharpUnionCase
impl UnwindSafe for FSharpUnionCase
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