pub fn new(
        subs: &'a SubstitutionTable,
        input: &'a [u8],
        options: DemangleOptions,
        out: &'a mut W,
    ) -> DemangleContext<'a, W> {
        DemangleContext {
            subs: subs,
            max_recursion: options.recursion_limit.map(|v| v.get()).unwrap_or(128),
            inner: vec![],
            input: input,
            source_name: None,
            out: out,
            bytes_written: 0,
            last_char_written: None,
            is_lambda_arg: false,
            is_template_prefix: false,
            is_template_prefix_in_nested_name: false,
            is_template_argument_pack: false,
            show_params: !options.no_params,
            show_return_type: !options.no_return_type,
            state: Cell::new(DemangleState { recursion_level: 0 }),
        }
    }
/// Construct a new `DemangleContext`.
Construct a new `DemangleContext`.
Construct a new ` DemangleContext ` .
pub fn new(
        subs: &'a SubstitutionTable,
        input: &'a [u8],
        options: DemangleOptions,
        out: &'a mut W,
    ) -> DemangleContext<'a, W> {
        DemangleContext {
            subs: subs,
            max_recursion: options.recursion_limit.map(|v| v.get()).unwrap_or(128),
            inner: vec![],
            input: input,
            source_name: None,
            out: out,
            bytes_written: 0,
            last_char_written: None,
            is_lambda_arg: false,
            is_template_prefix: false,
            is_template_prefix_in_nested_name: false,
            is_template_argument_pack: false,
            show_params: !options.no_params,
            show_return_type: !options.no_return_type,
            state: Cell::new(DemangleState { recursion_level: 0 }),
        }
    }
pub fn new ( subs : & ' a SubstitutionTable , input : & ' a [ u8 ] , options : DemangleOptions , out : & ' a mut W , ) -> DemangleContext < ' a , W > { DemangleContext { subs : subs , max_recursion : options . recursion_limit . map ( | v | v . get ( ) ) . unwrap_or ( 128 ) , inner : vec ! [ ] , input : input , source_name : None , out : out , bytes_written : 0 , last_char_written : None , is_lambda_arg : false , is_template_prefix : false , is_template_prefix_in_nested_name : false , is_template_argument_pack : false , show_params : ! options . no_params , show_return_type : ! options . no_return_type , state : Cell :: new ( DemangleState { recursion_level : 0 } ) , } }
Construct a new `DemangleContext`.
Construct a new ` DemangleContext ` .
subs
&'a SubstitutionTable
input
&'a [u8]
options
DemangleOptions
out
&'a mut W
subs
&'a SubstitutionTable
input
&'a [u8]
options
DemangleOptions
out
&'a mut W