1 // Format `lazy_static!`.
4 static ref CONFIG_NAME_REGEX: regex::Regex =
5 regex::Regex::new(r"^## `([^`]+)`").expect("Failed creating configuration pattern");
6 static ref CONFIG_VALUE_REGEX: regex::Regex = regex::Regex::new(r#"^#### `"?([^`"]+)"?`"#)
7 .expect("Failed creating configuration value pattern");
10 // We need to be able to format `lazy_static!` without known syntax.
22 pub static ref Sbase64_encode_string : :: lisp :: LispSubrRef = {
23 let subr = :: remacs_sys :: Lisp_Subr {
24 header : :: remacs_sys :: Lisp_Vectorlike_Header {
26 ( :: remacs_sys :: PseudovecType :: PVEC_SUBR as :: libc :: ptrdiff_t ) << ::
27 remacs_sys :: PSEUDOVECTOR_AREA_BITS ) , } , function : self ::
28 Fbase64_encode_string as * const :: libc :: c_void , min_args : 1i16 ,
29 max_args : 2i16 , symbol_name : ( b"base64-encode-string\x00" ) . as_ptr ( )
30 as * const :: libc :: c_char , intspec : :: std :: ptr :: null ( ) , doc : ::
31 std :: ptr :: null ( ) , lang : :: remacs_sys :: Lisp_Subr_Lang_Rust , } ;
33 let ptr = :: remacs_sys :: xmalloc (
34 :: std :: mem :: size_of :: < :: remacs_sys :: Lisp_Subr > ( ) ) as * mut ::
35 remacs_sys :: Lisp_Subr ; :: std :: ptr :: copy_nonoverlapping (
36 & subr , ptr , 1 ) ; :: std :: mem :: forget ( subr ) ; :: lisp :: ExternalPtr
37 :: new ( ptr ) } } ; }
41 static ref FOO: HashMap<String,
43 fn(Foo) -> Result<Box<Bar>, Either<FooError, BarError>>