var searchIndex = {}; searchIndex["slr_config"] = {"doc":"This crate implements the parsing for the SLRConfig format. Basic usage revolves\naround the creation and use of the `ConfigElement` type, like so:","items":[[3,"Error","slr_config","The error type used throughout this crate.",null,null],[12,"kind","","",0,null],[12,"text","","",0,null],[4,"ErrorKind","","An enum describing the kind of the error, to allow treating different\nerrors differenly.",null,null],[13,"ParseFailure","","A parse error has occured. This error is not recoverable.",1,null],[13,"InvalidRepr","","An object could not be parsed from its ConfigElement representation.\nThis error is recoverable, but the value the the object is in an\nunspecified state.",1,null],[13,"UnknownField","","While parsing a struct from a table, an unknown field was found. This\nerror is recoverable, and the struct is unaffected.",1,null],[13,"Custom","","A custom error available to 3rd party implementors. The semantics are\ndefined by the 3rd party.",1,null],[3,"Source","","Annotated representation of the configuration source string.",null,null],[3,"ConfigElement","","A configuration element.",null,null],[4,"ConfigElementKind","","The kind of the configuration element.",null,null],[13,"Value","","A simple value, containing a string.",2,null],[13,"Table","","A table, which is a mapping of strings to configuration elements.",2,null],[13,"Array","","An array of configuration elements.",2,null],[11,"clone","","",3,null],[11,"clone","","",2,null],[11,"new_table","","Creates a new empty table.",3,{"inputs":[],"output":{"name":"configelement"}}],[11,"new_value","","Creates a new value.",3,{"inputs":[{"name":"t"}],"output":{"name":"configelement"}}],[11,"new_array","","Creates a new array.",3,{"inputs":[],"output":{"name":"configelement"}}],[11,"from_source","","Parses a source and returns a table. The source will be reset by this\noperation, and must not be used with any spans created from a previous\nparsing done with that source.",3,{"inputs":[{"name":"source"}],"output":{"name":"result"}}],[11,"from_str","","Parses a source and returns a table.",3,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"from_source_with_init","","Updates the elements in this table with new values parsed from source.\nIf an error occurs, the contents of this table are undefined. The source\nwill be reset by this operation, and must not be used with any spans\ncreated from a previous lexing done with that source.",3,null],[11,"from_str_with_init","","Updates the elements in this table with new values parsed from source.\nIf an error occurs, the contents of this table are undefined.",3,null],[11,"kind","","Returns the kind of this element.",3,null],[11,"kind_mut","","Returns the kind of this element.",3,null],[11,"span","","Returns the span associated with this element.",3,null],[11,"as_table","","If this is a table, returns a pointer to its contents.",3,null],[11,"as_table_mut","","If this is a table, returns a pointer to its contents.",3,null],[11,"as_value","","If this is a value, returns a pointer to its contents.",3,null],[11,"as_value_mut","","If this is a value, returns a pointer to its contents.",3,null],[11,"as_array","","If this is an array, returns a pointer to its contents.",3,null],[11,"as_array_mut","","If this is an array, returns a pointer to its contents.",3,null],[11,"insert","","Insert an element into a table or an array. Panics if self is a value.\n`name` is ignored if self is an array.",3,null],[11,"print","","Outputs the string representation of this element into into a printer.",3,null],[11,"fmt","","",3,null],[8,"ElementRepr","","Describes a way to convert a type to a ConfigElement and back.",null,null],[10,"from_element","","Updates the contents of `self` based on values in the element.",4,null],[10,"to_element","","Creates an element that represents the contents of `self`.",4,null],[14,"slr_def!","","A macro to define the compile-time schemas for configuration elements.\nYou can use this macro to define structs and enums, like so:",null,null],[11,"new","","",0,{"inputs":[{"name":"errorkind"},{"name":"string"}],"output":{"name":"error"}}],[11,"from_span","","Creates an error from a certain span of the source. The source argument,\nif set, must be set to the source that was used when the span was created.",0,{"inputs":[{"name":"span"},{"name":"option"},{"name":"errorkind"},{"name":"str"}],"output":{"name":"error"}}],[11,"clone","","",5,null],[11,"new","","",5,{"inputs":[{"name":"path"},{"name":"str"}],"output":{"name":"source"}}],[11,"next","","",5,null],[11,"eq","","",1,null],[11,"ne","","",1,null],[11,"clone","","",1,null],[11,"fmt","","",1,null],[11,"clone","","",0,null],[11,"fmt","","",0,null],[11,"get_error","","",0,null]],"paths":[[3,"Error"],[4,"ErrorKind"],[4,"ConfigElementKind"],[3,"ConfigElement"],[8,"ElementRepr"],[3,"Source"]]}; initSearch(searchIndex);