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
sourceimpl NodeContent for FnRef<'_>
impl NodeContent for FnRef<'_>
sourcefn 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
sourcefn spanned(self, start: LexerPosition, end: LexerPosition) -> Node<Self>
fn spanned(self, start: LexerPosition, end: LexerPosition) -> Node<Self>
Add span information to a syntax node
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more