Struct hotspots_parser::lua::LuaParser
source · pub struct LuaParser { /* private fields */ }
Expand description
This parser can parse any Lua files.
Implementations§
Trait Implementations§
source§impl Parser for LuaParser
impl Parser for LuaParser
source§fn ro_container(&self) -> &Container
fn ro_container(&self) -> &Container
Returns a reference to the container.
source§fn add_file(&mut self, f: File) -> Result<(), Error>
fn add_file(&mut self, f: File) -> Result<(), Error>
Will return an error if the file is not compatible with the Parser.
source§fn files(&self) -> Result<&[File], Error>
fn files(&self) -> Result<&[File], Error>
Returns a mutable reference to the given files. It returns and error if the file can’t be
read.
source§fn filter_name(&mut self, s: String)
fn filter_name(&mut self, s: String)
Adds the filter for excluding functions.
source§fn func_repr(&self, v: Vec<Element>) -> (Vec<Element>, usize)
fn func_repr(&self, v: Vec<Element>) -> (Vec<Element>, usize)
Returns a new vector with the representation names for functions.
source§fn find_functions(&mut self, pb: &ProgressBar) -> Result<Vec<Element>, Error>
fn find_functions(&mut self, pb: &ProgressBar) -> Result<Vec<Element>, Error>
Returns all the functions in all files. It returns and error if the file can’t be read, or
the language parser can’t parse the contents.
Auto Trait Implementations§
impl RefUnwindSafe for LuaParser
impl Send for LuaParser
impl Sync for LuaParser
impl Unpin for LuaParser
impl UnwindSafe for LuaParser
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more