pub struct FnRef<'a> {
pub prototype: &'a FunctionPrototype,
pub statement: &'a CompoundStatement,
}
Expand description
Reference to a function held in a transformation unit
Fields§
§prototype: &'a FunctionPrototype
Prototype of the target function
statement: &'a CompoundStatement
Contents of the target function
Trait Implementations§
source§impl NodeContent for FnRef<'_>
impl NodeContent for FnRef<'_>
source§fn into_node<T>(self) -> Node<T>where
T: From<Self> + NodeContent,
fn into_node<T>(self) -> Node<T>where T: From<Self> + NodeContent,
Convert the contents into a node
source§fn spanned(self, start: LexerPosition, end: LexerPosition) -> Node<Self>
fn spanned(self, start: LexerPosition, end: LexerPosition) -> Node<Self>
Add span information to a syntax node
source§impl<'a> PartialEq for FnRef<'a>
impl<'a> PartialEq for FnRef<'a>
impl<'a> Copy for FnRef<'a>
impl<'a> StructuralPartialEq for FnRef<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for FnRef<'a>
impl<'a> Send for FnRef<'a>
impl<'a> Sync for FnRef<'a>
impl<'a> Unpin for FnRef<'a>
impl<'a> UnwindSafe for FnRef<'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