Struct leo_passes::common::symbol_table::function_symbol::FunctionSymbol
source · pub struct FunctionSymbol {
pub(crate) id: usize,
pub(crate) output_type: Type,
pub variant: Variant,
pub(crate) _span: Span,
pub(crate) input: Vec<Input>,
pub(crate) future_inputs: Vec<Location>,
pub(crate) finalize: Option<Location>,
}
Expand description
An entry for a function in the symbol table.
Fields§
§id: usize
The index associated with the scope in the parent symbol table.
output_type: Type
The output type of the function.
variant: Variant
Is this function a transition, inlined, or a regular function?.
_span: Span
The Span
associated with the function.
input: Vec<Input>
The inputs to the function.
future_inputs: Vec<Location>
Future inputs.
finalize: Option<Location>
The finalize block associated with the function.
Trait Implementations§
source§impl Clone for FunctionSymbol
impl Clone for FunctionSymbol
source§fn clone(&self) -> FunctionSymbol
fn clone(&self) -> FunctionSymbol
Returns a copy 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 FunctionSymbol
impl Debug for FunctionSymbol
source§impl<'de> Deserialize<'de> for FunctionSymbol
impl<'de> Deserialize<'de> for FunctionSymbol
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for FunctionSymbol
impl PartialEq for FunctionSymbol
source§fn eq(&self, other: &FunctionSymbol) -> bool
fn eq(&self, other: &FunctionSymbol) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for FunctionSymbol
impl Serialize for FunctionSymbol
impl StructuralPartialEq for FunctionSymbol
Auto Trait Implementations§
impl Freeze for FunctionSymbol
impl RefUnwindSafe for FunctionSymbol
impl Send for FunctionSymbol
impl Sync for FunctionSymbol
impl Unpin for FunctionSymbol
impl UnwindSafe for FunctionSymbol
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<'de, T> DeserializeExt<'de> for Twhere
T: DeserializeOwned,
impl<'de, T> DeserializeExt<'de> for Twhere
T: DeserializeOwned,
fn take_from_value<D>(
value: &mut Value,
field: &str,
) -> Result<T, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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