pub struct FunctionDefBody<'a> {
pub statements: Vec<Statement<'a>>,
pub src: &'a str,
}Expand description
Parsed body of a stored function, with an offset for mapping spans back to the outer source file.
Fields§
§statements: Vec<Statement<'a>>Parsed statements from the function body
src: &'a strThe body source string (borrowed from the outer source)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for FunctionDefBody<'a>
impl<'a> RefUnwindSafe for FunctionDefBody<'a>
impl<'a> Send for FunctionDefBody<'a>
impl<'a> Sync for FunctionDefBody<'a>
impl<'a> Unpin for FunctionDefBody<'a>
impl<'a> UnsafeUnpin for FunctionDefBody<'a>
impl<'a> UnwindSafe for FunctionDefBody<'a>
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