struct FunctionReference {
name: CompoundName,
anchor: Option<u32>,
}Expand description
An unresolved reference to a function: its compound name plus an optional explicit anchor.
Fields§
§name: CompoundName§anchor: Option<u32>Implementations§
Source§impl FunctionReference
impl FunctionReference
Sourcefn resolve(
&self,
extensions: &SimpleExtensions,
span: Span<'_>,
) -> Result<u32, MessageParseError>
fn resolve( &self, extensions: &SimpleExtensions, span: Span<'_>, ) -> Result<u32, MessageParseError>
Resolve this reference to a concrete function anchor against the extension registry.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FunctionReference
impl RefUnwindSafe for FunctionReference
impl Send for FunctionReference
impl Sync for FunctionReference
impl Unpin for FunctionReference
impl UnsafeUnpin for FunctionReference
impl UnwindSafe for FunctionReference
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