var searchIndex = {}; searchIndex["twig"] = {"doc":"<a href="https://github.com/Nercury/twig-rs">\n <img style="position: absolute; top: 0; left: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_left_green_007200.png" alt="Fork me on GitHub">\n</a>\n<style>.sidebar { margin-top: 53px }</style>","items":[[3,"Error","twig","",null,null],[3,"Lexer","","Parses template file and converts it to a stream of tokens.",null,null],[3,"TokenIter","","",null,null],[3,"CompiledEnvironment","","Project configuration container with all extensions applied.",null,null],[12,"lexing","","",0,null],[12,"parsing","","",0,null],[3,"Environment","","Project configuration container.",null,null],[12,"operators","","",1,null],[3,"Token","","Lexer output token, lexer's output and parser's input.",null,null],[12,"value","","",2,null],[12,"line","","",2,null],[4,"TokenValue","","Token value.",null,null],[13,"Text","","",3,null],[13,"BlockStart","","",3,null],[13,"VarStart","","",3,null],[13,"BlockEnd","","",3,null],[13,"VarEnd","","",3,null],[13,"Name","","",3,null],[13,"Value","","",3,null],[13,"Operator","","",3,null],[13,"Punctuation","","",3,null],[13,"InterpolationStart","","",3,null],[13,"InterpolationEnd","","",3,null],[13,"CommentStart","","",3,null],[11,"clone","","",2,null],[11,"fmt","","",2,null],[11,"clone","","",3,null],[11,"fmt","","",3,null],[11,"eq","","",3,null],[11,"ne","","",3,null],[11,"into","","",3,null],[11,"next","","",4,null],[11,"new","","Create the iterator.",4,{"inputs":[{"name":"lexer"},{"name":"str"}],"output":{"name":"tokeniter"}}],[11,"default","","Initialize default lexer with default options.",5,{"inputs":[{"name":"lexingenvironment"}],"output":{"name":"lexer"}}],[11,"tokens","","Convert provided template into a token stream.",5,null],[11,"clone","","",6,null],[11,"fmt","","",6,null],[11,"new_at","","",6,{"inputs":[{"name":"errormessage"},{"name":"usize"}],"output":{"name":"error"}}],[11,"new","","",6,{"inputs":[{"name":"errormessage"}],"output":{"name":"error"}}],[11,"default","","",1,{"inputs":[],"output":{"name":"environment"}}],[11,"init_all","","",1,null],[11,"push_operators","","",1,null],[11,"default","","",0,{"inputs":[],"output":{"name":"compiledenvironment"}}],[0,"extension","","",null,null],[3,"CoreExtension","twig::extension","",null,null],[11,"apply","","",7,{"inputs":[{"name":"environment"}],"output":null}],[8,"Extension","","Implement this trait to create a new Twig extension.",null,null],[10,"apply","","",8,{"inputs":[{"name":"environment"}],"output":null}],[0,"node","twig","",null,null],[3,"Expr","twig::node","",null,null],[12,"line","","",9,null],[12,"value","","",9,null],[3,"Module","","",null,null],[12,"body","","",10,null],[12,"blocks","","",10,null],[12,"macros","","",10,null],[12,"traits","","",10,null],[3,"Block","","",null,null],[3,"Macro","","",null,null],[3,"Trait","","",null,null],[3,"EmbededTemplate","","",null,null],[4,"Body","","",null,null],[13,"List","","",11,null],[12,"items","twig::node::Body","",11,null],[13,"Text","twig::node","",11,null],[12,"value","twig::node::Body","",11,null],[12,"line","","",11,null],[13,"Print","twig::node","",11,null],[12,"expr","twig::node::Body","",11,null],[12,"line","","",11,null],[4,"ExprValue","twig::node","",null,null],[13,"Constant","","",12,null],[13,"Name","","",12,null],[13,"UnaryOperator","","",12,null],[12,"value","twig::node::ExprValue","",12,null],[12,"expr","","",12,null],[13,"BinaryOperator","twig::node","",12,null],[12,"value","twig::node::ExprValue","",12,null],[12,"left","","",12,null],[12,"right","","",12,null],[13,"Concat","twig::node","",12,null],[12,"left","twig::node::ExprValue","",12,null],[12,"right","","",12,null],[13,"Conditional","twig::node","",12,null],[12,"expr","twig::node::ExprValue","",12,null],[12,"yay","","",12,null],[12,"nay","","",12,null],[4,"ExprConstant","twig::node","",null,null],[13,"Str","","",13,null],[13,"Bool","","",13,null],[13,"Null","","",13,null],[11,"fmt","","",11,null],[11,"new","","",11,{"inputs":[],"output":{"name":"body"}}],[11,"expect_print","","",11,null],[11,"expect_list","","",11,null],[11,"clone","","",9,null],[11,"eq","","",9,null],[11,"ne","","",9,null],[11,"fmt","","",9,null],[11,"new_at","","",9,{"inputs":[{"name":"exprvalue"},{"name":"usize"}],"output":{"name":"expr"}}],[11,"new_str_constant","","",9,{"inputs":[{"name":"str"},{"name":"usize"}],"output":{"name":"expr"}}],[11,"new_bool","","",9,{"inputs":[{"name":"bool"},{"name":"usize"}],"output":{"name":"expr"}}],[11,"new_null","","",9,{"inputs":[{"name":"usize"}],"output":{"name":"expr"}}],[11,"new_name","","",9,{"inputs":[{"name":"str"},{"name":"usize"}],"output":{"name":"expr"}}],[11,"clone","","",13,null],[11,"eq","","",13,null],[11,"ne","","",13,null],[11,"fmt","","",13,null],[11,"clone","","",12,null],[11,"eq","","",12,null],[11,"ne","","",12,null],[11,"fmt","","",12,null],[11,"new","","",10,{"inputs":[],"output":{"name":"module"}}],[0,"parser","twig","",null,null],[3,"Context","twig::parser","Helpers for manipulating and inspecting token iterators when creating AST.",null,null],[12,"env","","",14,null],[12,"tokens","","",14,null],[11,"parse","twig::node","",11,{"inputs":[{"name":"context"}],"output":{"name":"result"}}],[11,"parse","","",9,{"inputs":[{"name":"context"}],"output":{"name":"result"}}],[11,"parse","","",10,{"inputs":[{"name":"context"}],"output":{"name":"result"}}],[8,"Parse","twig::parser","",null,null],[16,"Output","","",15,null],[10,"parse","","",15,{"inputs":[{"name":"context"}],"output":{"name":"result"}}],[11,"new","","",14,{"inputs":[{"name":"parsingenvironment"},{"name":"i"}],"output":{"name":"context"}}],[11,"current","","Get current token or fail.",14,null],[11,"maybe_current","","Get current token or the end of stream.",14,null],[11,"next","","Advances to the next token and returns previous.",14,null],[11,"skip_to_next_if","","Advances to the next token if expected token value is the same as current and\nreturns current.",14,null],[11,"expect","","Expects the current token to match value and advances to next token.",14,null],[11,"get_operator_options","","Returns options structure for specified operator.",14,null],[0,"operator","twig","",null,null],[3,"OperatorOptions","twig::operator","",null,null],[12,"value","","",16,null],[12,"precedence","","",16,null],[12,"kind","","",16,null],[3,"Operator","","",null,null],[12,"options","","",17,null],[12,"callable","","",17,null],[4,"OperatorKind","","",null,null],[13,"Unary","","Single argument operator, i.e negation.",18,null],[13,"Binary","","Two argument operator, i.e sum.",18,null],[4,"Associativity","","Operator associativity.",null,null],[13,"Left","","",19,null],[13,"Right","","",19,null],[11,"clone","","",18,null],[11,"fmt","","",18,null],[11,"eq","","",18,null],[11,"ne","","",18,null],[11,"new_binary","","",18,{"inputs":[{"name":"associativity"}],"output":{"name":"operatorkind"}}],[11,"new_binary_left","","",18,{"inputs":[],"output":{"name":"operatorkind"}}],[11,"new_binary_right","","",18,{"inputs":[],"output":{"name":"operatorkind"}}],[11,"new_unary","","",18,{"inputs":[],"output":{"name":"operatorkind"}}],[11,"clone","","",16,null],[11,"fmt","","",16,null],[11,"new_binary","","",16,{"inputs":[{"name":"str"},{"name":"u16"},{"name":"associativity"}],"output":{"name":"operatoroptions"}}],[11,"new_binary_left","","",16,{"inputs":[{"name":"str"},{"name":"u16"}],"output":{"name":"operatoroptions"}}],[11,"new_binary_right","","",16,{"inputs":[{"name":"str"},{"name":"u16"}],"output":{"name":"operatoroptions"}}],[11,"new_unary","","",16,{"inputs":[{"name":"str"},{"name":"u16"}],"output":{"name":"operatoroptions"}}],[11,"new_binary","","",17,{"inputs":[{"name":"str"},{"name":"u16"},{"name":"associativity"},{"name":"f"}],"output":{"name":"operator"}}],[11,"new_binary_left","","",17,{"inputs":[{"name":"str"},{"name":"u16"},{"name":"f"}],"output":{"name":"operator"}}],[11,"new_binary_right","","",17,{"inputs":[{"name":"str"},{"name":"u16"},{"name":"f"}],"output":{"name":"operator"}}],[11,"new_unary","","",17,{"inputs":[{"name":"str"},{"name":"u16"},{"name":"f"}],"output":{"name":"operator"}}],[11,"eq","","",19,null],[11,"clone","","",19,null],[11,"fmt","","",19,null],[11,"partial_cmp","","",19,null],[11,"cmp","","",19,null],[0,"value","twig","",null,null],[4,"TwigValueRef","twig::value","",null,null],[13,"Num","","",20,null],[13,"Str","","",20,null],[4,"TwigValue","","",null,null],[13,"Num","","",21,null],[13,"Str","","",21,null],[4,"TwigNumberRef","","Parsed twig number representation.",null,null],[13,"Big","","",22,null],[13,"Float","","",22,null],[13,"Int","","",22,null],[4,"TwigNumber","","Parsed twig number representation.",null,null],[13,"Big","","",23,null],[13,"Float","","",23,null],[13,"Int","","",23,null],[11,"clone","","",20,null],[11,"fmt","","",20,null],[11,"eq","","",20,null],[11,"ne","","",20,null],[11,"new_big_num","","",20,{"inputs":[{"name":"str"}],"output":{"name":"twigvalueref"}}],[11,"new_float","","",20,{"inputs":[{"name":"f64"}],"output":{"name":"twigvalueref"}}],[11,"new_int","","",20,{"inputs":[{"name":"i64"}],"output":{"name":"twigvalueref"}}],[11,"new_str","","",20,{"inputs":[{"name":"str"}],"output":{"name":"twigvalueref"}}],[11,"into","","",20,null],[11,"clone","","",21,null],[11,"fmt","","",21,null],[11,"eq","","",21,null],[11,"ne","","",21,null],[11,"fmt","","",21,null],[11,"clone","","",22,null],[11,"fmt","","",22,null],[11,"eq","","",22,null],[11,"ne","","",22,null],[11,"clone","","",23,null],[11,"fmt","","",23,null],[11,"eq","","",23,null],[11,"ne","","",23,null],[11,"fmt","","",23,null],[11,"into","","",22,null],[0,"runtime","twig","",null,null],[3,"Location","twig::runtime","Location record in source file.",null,null],[12,"line","","",24,null],[3,"Error","","Runtime error with stack trace.",null,null],[12,"message","","",25,null],[12,"stack_trace","","",25,null],[4,"TraceEntry","","Stack trace record.",null,null],[13,"SourceFile","","Trace source file change that caused the error.",26,null],[12,"target","twig::runtime::TraceEntry","",26,null],[13,"Operator","twig::runtime","Trace operator call that caused the error.",26,null],[12,"target","twig::runtime::TraceEntry","",26,null],[12,"extension","","",26,null],[13,"Position","twig::runtime","Trace position in last known source that cause the error.",26,null],[12,"from","twig::runtime::TraceEntry","",26,null],[4,"ErrorMessage","twig::runtime","Runtime error message.",null,null],[13,"InvalidArgumentCount","","Callable invoked with argument count that does not match defined count.",27,null],[12,"expected","twig::runtime::ErrorMessage","",27,null],[12,"found","","",27,null],[6,"Result","twig::runtime","Runtime operation result.",null,null],[11,"new","","",24,{"inputs":[{"name":"usize"}],"output":{"name":"location"}}],[11,"fmt","","",27,null],[11,"new","","",25,{"inputs":[{"name":"errormessage"}],"output":{"name":"error"}}],[11,"fmt","","",25,null],[6,"Result","twig","",null,null],[8,"Expect","","Returns different output based on expected value.",null,null],[16,"Output","","",28,null],[10,"expect","","",28,null]],"paths":[[3,"CompiledEnvironment"],[3,"Environment"],[3,"Token"],[4,"TokenValue"],[3,"TokenIter"],[3,"Lexer"],[3,"Error"],[3,"CoreExtension"],[8,"Extension"],[3,"Expr"],[3,"Module"],[4,"Body"],[4,"ExprValue"],[4,"ExprConstant"],[3,"Context"],[8,"Parse"],[3,"OperatorOptions"],[3,"Operator"],[4,"OperatorKind"],[4,"Associativity"],[4,"TwigValueRef"],[4,"TwigValue"],[4,"TwigNumberRef"],[4,"TwigNumber"],[3,"Location"],[3,"Error"],[4,"TraceEntry"],[4,"ErrorMessage"],[8,"Expect"]]}; initSearch(searchIndex);