pub struct FunctionSignature {
pub name: String,
pub params: Vec<Variable>,
pub return_type: Option<DieTypeDefinition>,
pub self_type: Option<SelfType>,
pub callable: bool,
pub debug_location: String,
}Fields§
§name: StringShort name of the function, e.g. “len” for “std::vec::Vec
params: Vec<Variable>Params for the function, e.g. “self: &mut Self, index: usize”
return_type: Option<DieTypeDefinition>Return type of the function, e.g. “usize” for “std::vec::Vec
self_type: Option<SelfType>Somewhat duplicative with the params field, this
determines (a) if we have a self parameter, and (b) what kind of self parameter it is.
callable: boolcallable indicates that we expect this function to be callable.
This is true if the function has a symbol in the binary.
If false, it means this is a synthetic method or a function that cannot be called
(e.g., a trait method without an implementation).
debug_location: Stringe.g. /path/to/debug_info.rgcu.o 0x12345
Mostly useful for debugging
Implementations§
Trait Implementations§
Source§impl Clone for FunctionSignature
impl Clone for FunctionSignature
Source§fn clone(&self) -> FunctionSignature
fn clone(&self) -> FunctionSignature
Returns a duplicate 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 moreSource§impl Debug for FunctionSignature
impl Debug for FunctionSignature
Source§impl Hash for FunctionSignature
impl Hash for FunctionSignature
Source§impl PartialEq for FunctionSignature
impl PartialEq for FunctionSignature
Source§impl Update for FunctionSignature
impl Update for FunctionSignature
impl Eq for FunctionSignature
impl StructuralPartialEq for FunctionSignature
Auto Trait Implementations§
impl Freeze for FunctionSignature
impl RefUnwindSafe for FunctionSignature
impl Send for FunctionSignature
impl Sync for FunctionSignature
impl Unpin for FunctionSignature
impl UnwindSafe for FunctionSignature
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more