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]

Create a BindOpts with the given style, and the default prefix: "__binding".

Create a BindOpts with the given style and prefix.

Trait Implementations

impl Debug for BindOpts
[src]

Formats the value using the given formatter.

impl Clone for BindOpts
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl From<BindStyle> for BindOpts
[src]

Performs the conversion.