pub struct ParsedFunction {
pub rust_function_name: String,
pub relative_path: String,
pub role: Role,
}Expand description
Represents a function in the source code
Fields§
§rust_function_name: StringName of the function, parsed from the function definition
relative_path: StringPath to the file where function is defined
role: RoleParsed from kinetics_macro macro definition
Implementations§
Source§impl ParsedFunction
impl ParsedFunction
Sourcepub fn func_name(&self, is_local: bool) -> String
pub fn func_name(&self, is_local: bool) -> String
Generate lambda function name out of Rust function name or macro attribute
By default use the Rust function plus crate path as the function name. Convert some-name to SomeName, and do other transformations in order to comply with Lambda function name requirements.
Trait Implementations§
Source§impl Clone for ParsedFunction
impl Clone for ParsedFunction
Source§fn clone(&self) -> ParsedFunction
fn clone(&self) -> ParsedFunction
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ParsedFunction
impl RefUnwindSafe for ParsedFunction
impl Send for ParsedFunction
impl Sync for ParsedFunction
impl Unpin for ParsedFunction
impl UnwindSafe for ParsedFunction
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