pub enum SymFunctionSource<'db> {
Function(AstFunction<'db>),
MainFunction(AstMainFunction<'db>),
Constructor(SymAggregate<'db>, AstAggregate<'db>),
}Variants§
Function(AstFunction<'db>)
MainFunction(AstMainFunction<'db>)
Generated fn main() from statements appearing at the top of a module
Constructor(SymAggregate<'db>, AstAggregate<'db>)
Generated constructor from an aggregate like struct Foo(x: u32)
Implementations§
Source§impl<'db> SymFunctionSource<'db>
impl<'db> SymFunctionSource<'db>
fn effects(self, db: &'db dyn Db) -> AstFunctionEffects<'db>
fn name(self, db: &'db dyn Db) -> SpannedIdentifier<'db>
pub fn inputs(self, db: &'db dyn Db) -> Cow<'db, [AstFunctionInput<'db>]>
Trait Implementations§
Source§impl<'db> Clone for SymFunctionSource<'db>
impl<'db> Clone for SymFunctionSource<'db>
Source§fn clone(&self) -> SymFunctionSource<'db>
fn clone(&self) -> SymFunctionSource<'db>
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<'db> Debug for SymFunctionSource<'db>
impl<'db> Debug for SymFunctionSource<'db>
Source§impl<'db> From<AstFunction<'db>> for SymFunctionSource<'db>
impl<'db> From<AstFunction<'db>> for SymFunctionSource<'db>
Source§fn from(value: AstFunction<'db>) -> Self
fn from(value: AstFunction<'db>) -> Self
Converts to this type from the input type.
Source§impl<'db> From<AstMainFunction<'db>> for SymFunctionSource<'db>
impl<'db> From<AstMainFunction<'db>> for SymFunctionSource<'db>
Source§fn from(value: AstMainFunction<'db>) -> Self
fn from(value: AstMainFunction<'db>) -> Self
Converts to this type from the input type.
Source§impl<'db> Ord for SymFunctionSource<'db>
impl<'db> Ord for SymFunctionSource<'db>
Source§fn cmp(&self, other: &SymFunctionSource<'db>) -> Ordering
fn cmp(&self, other: &SymFunctionSource<'db>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'db> PartialEq for SymFunctionSource<'db>
impl<'db> PartialEq for SymFunctionSource<'db>
Source§impl<'db> PartialOrd for SymFunctionSource<'db>
impl<'db> PartialOrd for SymFunctionSource<'db>
Source§impl<'db> PopulateDefaultSymbols<'db> for SymFunctionSource<'db>
impl<'db> PopulateDefaultSymbols<'db> for SymFunctionSource<'db>
fn populate_default_symbols( &self, db: &'db dyn Db, scope: &Scope<'_, 'db>, symbols: &mut SignatureSymbols<'db>, )
Source§impl<'db> PopulateSignatureSymbols<'db> for SymFunctionSource<'db>
impl<'db> PopulateSignatureSymbols<'db> for SymFunctionSource<'db>
fn populate_signature_symbols( &self, db: &'db dyn Db, symbols: &mut SignatureSymbols<'db>, )
Source§impl<'db> Serialize for SymFunctionSource<'db>
impl<'db> Serialize for SymFunctionSource<'db>
Source§impl<'db> SourceSpanned<'db> for SymFunctionSource<'db>
impl<'db> SourceSpanned<'db> for SymFunctionSource<'db>
fn source_span(&self, db: &'db dyn Db) -> Span<'db>
Source§impl<'db> Update for SymFunctionSource<'db>
impl<'db> Update for SymFunctionSource<'db>
impl<'db> Copy for SymFunctionSource<'db>
impl<'db> Eq for SymFunctionSource<'db>
impl<'db> StructuralPartialEq for SymFunctionSource<'db>
Auto Trait Implementations§
impl<'db> Freeze for SymFunctionSource<'db>
impl<'db> !RefUnwindSafe for SymFunctionSource<'db>
impl<'db> Send for SymFunctionSource<'db>
impl<'db> Sync for SymFunctionSource<'db>
impl<'db> Unpin for SymFunctionSource<'db>
impl<'db> UnsafeUnpin for SymFunctionSource<'db>
impl<'db> !UnwindSafe for SymFunctionSource<'db>
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§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