Struct synstructure::BindOpts
[−]
[src]
pub struct BindOpts { /* fields omitted */ }
Binding options to use when generating a pattern. Configuration options used for generating binding patterns.
bind_style
controls the type of binding performed in the pattern, for
example: ref
or ref mut
.
prefix
controls the name which is used for the binding. This can be used
to avoid name conflicts with nested match patterns.
Methods
impl BindOpts
[src]
fn new(bind_style: BindStyle) -> BindOpts
Create a BindOpts with the given style, and the default prefix: "__binding".
fn with_prefix(bind_style: BindStyle, prefix: String) -> BindOpts
Create a BindOpts with the given style and prefix.
Trait Implementations
impl Debug for BindOpts
[src]
impl Clone for BindOpts
[src]
fn clone(&self) -> BindOpts
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more