pub struct FSharpActivePattern {
pub kind: ActivePatternKind,
pub params: Vec<String>,
pub body: FSharpExpr,
}Expand description
An active pattern definition.
Fields§
§kind: ActivePatternKindThe active pattern kind.
params: Vec<String>Parameters.
body: FSharpExprBody.
Implementations§
Source§impl FSharpActivePattern
impl FSharpActivePattern
Sourcepub fn emit(&self, backend: &FSharpBackend) -> String
pub fn emit(&self, backend: &FSharpBackend) -> String
Emit the active pattern.
Trait Implementations§
Source§impl Clone for FSharpActivePattern
impl Clone for FSharpActivePattern
Source§fn clone(&self) -> FSharpActivePattern
fn clone(&self) -> FSharpActivePattern
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 FSharpActivePattern
impl RefUnwindSafe for FSharpActivePattern
impl Send for FSharpActivePattern
impl Sync for FSharpActivePattern
impl Unpin for FSharpActivePattern
impl UnsafeUnpin for FSharpActivePattern
impl UnwindSafe for FSharpActivePattern
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