MCPcopy Create free account
hub / github.com/PerroEngine/Perro / new

Method new

perro_source/core/perro_animation/src/anim_tree.rs:80–84  ·  view source on GitHub ↗
(src: &'a str)

Source from the content-addressed store, hash-verified

78
79impl<'a> AnimationTreeParser<'a> {
80 fn new(src: &'a str) -> Self {
81 let mut lexer = Lexer::new(src);
82 let current = lexer.next_token();
83 Self { lexer, current }
84 }
85
86 fn parse(mut self) -> Result<AnimationTreeAsset, String> {
87 let mut name = Cow::Borrowed("AnimationTree");

Callers

nothing calls this directly

Calls 1

next_tokenMethod · 0.80

Tested by

no test coverage detected