Struct leo_ast::access::AssociatedFunction
source · pub struct AssociatedFunction {
pub ty: Type,
pub name: Identifier,
pub arguments: Vec<Expression>,
pub span: Span,
}Expand description
An access expression to an associated function in a struct, e.g.Pedersen64::hash().
Fields§
§ty: TypeThe inner struct type.
name: IdentifierThe static struct member function that is being accessed.
arguments: Vec<Expression>The arguments passed to the function name.
span: SpanThe span for the entire expression Foo::bar().
Trait Implementations§
source§impl Clone for AssociatedFunction
impl Clone for AssociatedFunction
source§fn clone(&self) -> AssociatedFunction
fn clone(&self) -> AssociatedFunction
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 AssociatedFunction
impl Debug for AssociatedFunction
source§impl<'de> Deserialize<'de> for AssociatedFunction
impl<'de> Deserialize<'de> for AssociatedFunction
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 Display for AssociatedFunction
impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
impl Node for AssociatedFunction
source§impl PartialEq<AssociatedFunction> for AssociatedFunction
impl PartialEq<AssociatedFunction> for AssociatedFunction
source§fn eq(&self, other: &AssociatedFunction) -> bool
fn eq(&self, other: &AssociatedFunction) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for AssociatedFunction
impl Serialize for AssociatedFunction
impl Eq for AssociatedFunction
impl StructuralEq for AssociatedFunction
impl StructuralPartialEq for AssociatedFunction
Auto Trait Implementations§
impl RefUnwindSafe for AssociatedFunction
impl Send for AssociatedFunction
impl Sync for AssociatedFunction
impl Unpin for AssociatedFunction
impl UnwindSafe for AssociatedFunction
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.