Struct leo_ast::access::array_access::ArrayAccess
source · pub struct ArrayAccess {
pub array: Box<Expression>,
pub index: Box<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array access expression, e.g., foo[index]
.
Fields§
§array: Box<Expression>
An expression evaluating to some array type, e.g., [false, true]
.
index: Box<Expression>
The index to access in the array expression. E.g., 0
for [false, true]
would yield false
.
span: Span
The span for the entire expression foo[index]
.
span: Span
The span for the entire expression foo[index]
.
id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayAccess
impl Clone for ArrayAccess
source§fn clone(&self) -> ArrayAccess
fn clone(&self) -> ArrayAccess
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ArrayAccess
impl Debug for ArrayAccess
source§impl<'de> Deserialize<'de> for ArrayAccess
impl<'de> Deserialize<'de> for ArrayAccess
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>,
source§impl Display for ArrayAccess
impl Display for ArrayAccess
source§impl Node for ArrayAccess
impl Node for ArrayAccess
source§impl PartialEq for ArrayAccess
impl PartialEq for ArrayAccess
source§impl Display for ArrayAccess
impl Display for ArrayAccess
source§impl Node for ArrayAccess
impl Node for ArrayAccess
source§impl PartialEq for ArrayAccess
impl PartialEq for ArrayAccess
source§fn eq(&self, other: &ArrayAccess) -> bool
fn eq(&self, other: &ArrayAccess) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayAccess
impl Serialize for ArrayAccess
impl Eq for ArrayAccess
impl StructuralPartialEq for ArrayAccess
Auto Trait Implementations§
impl Freeze for ArrayAccess
impl RefUnwindSafe for ArrayAccess
impl Send for ArrayAccess
impl Sync for ArrayAccess
impl Unpin for ArrayAccess
impl UnwindSafe for ArrayAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/associated_constant_access/struct.AssociatedConstant.html b/leo_ast/access/associated_constant_access/struct.AssociatedConstant.html
index f4092a310b..06cb549cd6 100644
--- a/leo_ast/access/associated_constant_access/struct.AssociatedConstant.html
+++ b/leo_ast/access/associated_constant_access/struct.AssociatedConstant.html
@@ -1,15 +1,15 @@
AssociatedConstant in leo_ast::access::associated_constant_access - Rust pub struct AssociatedConstant {
pub ty: Type,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An access expression to an struct constant., e.g. u8::MAX
.
Fields§
§ty: Type
The inner struct type.
§name: Identifier
The struct constant that is being accessed.
-§span: Span
The span for the entire expression Foo::bar()
.
+§span: Span
The span for the entire expression Foo::bar()
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for AssociatedConstant
source§fn clone(&self) -> AssociatedConstant
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AssociatedConstant
source§impl<'de> Deserialize<'de> for AssociatedConstant
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AssociatedConstant
source§impl Node for AssociatedConstant
source§impl PartialEq for AssociatedConstant
source§impl Display for AssociatedConstant
source§impl Node for AssociatedConstant
source§impl PartialEq for AssociatedConstant
source§fn eq(&self, other: &AssociatedConstant) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AssociatedConstant
source§impl Eq for AssociatedConstant
source§impl StructuralPartialEq for AssociatedConstant
Auto Trait Implementations§
§impl Freeze for AssociatedConstant
§impl RefUnwindSafe for AssociatedConstant
§impl Send for AssociatedConstant
§impl Sync for AssociatedConstant
§impl Unpin for AssociatedConstant
§impl UnwindSafe for AssociatedConstant
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/associated_function_access/struct.AssociatedFunction.html b/leo_ast/access/associated_function_access/struct.AssociatedFunction.html
index a1273c79ac..2d8b7fb2d8 100644
--- a/leo_ast/access/associated_function_access/struct.AssociatedFunction.html
+++ b/leo_ast/access/associated_function_access/struct.AssociatedFunction.html
@@ -2,16 +2,16 @@
pub variant: Identifier,
pub name: Identifier,
pub arguments: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
An access expression to an associated function in a struct, e.g.Pedersen64::hash()
.
Fields§
§variant: Identifier
The inner struct variant.
§name: Identifier
The static struct member function that is being accessed.
§arguments: Vec<Expression>
The arguments passed to the function name
.
-§span: Span
The span for the entire expression Foo::bar()
.
+§span: Span
The span for the entire expression Foo::bar()
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for AssociatedFunction
source§fn clone(&self) -> AssociatedFunction
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AssociatedFunction
source§impl<'de> Deserialize<'de> for AssociatedFunction
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
source§impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
source§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
source§impl Eq for AssociatedFunction
source§impl StructuralPartialEq for AssociatedFunction
Auto Trait Implementations§
§impl Freeze for AssociatedFunction
§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> Any for Twhere
diff --git a/leo_ast/access/member_access/struct.MemberAccess.html b/leo_ast/access/member_access/struct.MemberAccess.html
index cf1239ba5c..a1659ffe4e 100644
--- a/leo_ast/access/member_access/struct.MemberAccess.html
+++ b/leo_ast/access/member_access/struct.MemberAccess.html
@@ -1,15 +1,15 @@
MemberAccess in leo_ast::access::member_access - Rust Struct leo_ast::access::member_access::MemberAccess
source · pub struct MemberAccess {
pub inner: Box<Expression>,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct member access expression inner.name
to some structure with named members.
Fields§
§inner: Box<Expression>
The inner struct that is being accessed.
§name: Identifier
The name of the struct member to access.
-§span: Span
The span covering all of inner.name
.
+§span: Span
The span covering all of inner.name
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for MemberAccess
source§fn clone(&self) -> MemberAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemberAccess
source§impl<'de> Deserialize<'de> for MemberAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§fn eq(&self, other: &MemberAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MemberAccess
source§impl Eq for MemberAccess
source§impl StructuralPartialEq for MemberAccess
Auto Trait Implementations§
§impl Freeze for MemberAccess
§impl RefUnwindSafe for MemberAccess
§impl Send for MemberAccess
§impl Sync for MemberAccess
§impl Unpin for MemberAccess
§impl UnwindSafe for MemberAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.ArrayAccess.html b/leo_ast/access/struct.ArrayAccess.html
index 146ae7d04d..598746ab02 100644
--- a/leo_ast/access/struct.ArrayAccess.html
+++ b/leo_ast/access/struct.ArrayAccess.html
@@ -1,15 +1,15 @@
ArrayAccess in leo_ast::access - Rust Struct leo_ast::access::ArrayAccess
source · pub struct ArrayAccess {
pub array: Box<Expression>,
pub index: Box<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array access expression, e.g., foo[index]
.
Fields§
§array: Box<Expression>
An expression evaluating to some array type, e.g., [false, true]
.
§index: Box<Expression>
The index to access in the array expression. E.g., 0
for [false, true]
would yield false
.
-§span: Span
The span for the entire expression foo[index]
.
+§span: Span
The span for the entire expression foo[index]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayAccess
source§fn clone(&self) -> ArrayAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayAccess
source§impl<'de> Deserialize<'de> for ArrayAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayAccess
source§impl Node for ArrayAccess
source§impl PartialEq for ArrayAccess
source§impl Display for ArrayAccess
source§impl Node for ArrayAccess
source§impl PartialEq for ArrayAccess
source§fn eq(&self, other: &ArrayAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayAccess
source§impl Eq for ArrayAccess
source§impl StructuralPartialEq for ArrayAccess
Auto Trait Implementations§
§impl Freeze for ArrayAccess
§impl RefUnwindSafe for ArrayAccess
§impl Send for ArrayAccess
§impl Sync for ArrayAccess
§impl Unpin for ArrayAccess
§impl UnwindSafe for ArrayAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.AssociatedConstant.html b/leo_ast/access/struct.AssociatedConstant.html
index 0fa205198d..58a61233ab 100644
--- a/leo_ast/access/struct.AssociatedConstant.html
+++ b/leo_ast/access/struct.AssociatedConstant.html
@@ -1,15 +1,15 @@
AssociatedConstant in leo_ast::access - Rust Struct leo_ast::access::AssociatedConstant
source · pub struct AssociatedConstant {
pub ty: Type,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An access expression to an struct constant., e.g. u8::MAX
.
Fields§
§ty: Type
The inner struct type.
§name: Identifier
The struct constant that is being accessed.
-§span: Span
The span for the entire expression Foo::bar()
.
+§span: Span
The span for the entire expression Foo::bar()
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for AssociatedConstant
source§fn clone(&self) -> AssociatedConstant
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AssociatedConstant
source§impl<'de> Deserialize<'de> for AssociatedConstant
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AssociatedConstant
source§impl Node for AssociatedConstant
source§impl PartialEq for AssociatedConstant
source§impl Display for AssociatedConstant
source§impl Node for AssociatedConstant
source§impl PartialEq for AssociatedConstant
source§fn eq(&self, other: &AssociatedConstant) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AssociatedConstant
source§impl Eq for AssociatedConstant
source§impl StructuralPartialEq for AssociatedConstant
Auto Trait Implementations§
§impl Freeze for AssociatedConstant
§impl RefUnwindSafe for AssociatedConstant
§impl Send for AssociatedConstant
§impl Sync for AssociatedConstant
§impl Unpin for AssociatedConstant
§impl UnwindSafe for AssociatedConstant
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.AssociatedFunction.html b/leo_ast/access/struct.AssociatedFunction.html
index ad16e78964..a56ee09ecc 100644
--- a/leo_ast/access/struct.AssociatedFunction.html
+++ b/leo_ast/access/struct.AssociatedFunction.html
@@ -2,16 +2,16 @@
pub variant: Identifier,
pub name: Identifier,
pub arguments: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
An access expression to an associated function in a struct, e.g.Pedersen64::hash()
.
Fields§
§variant: Identifier
The inner struct variant.
§name: Identifier
The static struct member function that is being accessed.
§arguments: Vec<Expression>
The arguments passed to the function name
.
-§span: Span
The span for the entire expression Foo::bar()
.
+§span: Span
The span for the entire expression Foo::bar()
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for AssociatedFunction
source§fn clone(&self) -> AssociatedFunction
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AssociatedFunction
source§impl<'de> Deserialize<'de> for AssociatedFunction
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
source§impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
source§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
source§impl Eq for AssociatedFunction
source§impl StructuralPartialEq for AssociatedFunction
Auto Trait Implementations§
§impl Freeze for AssociatedFunction
§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> Any for Twhere
diff --git a/leo_ast/access/struct.MemberAccess.html b/leo_ast/access/struct.MemberAccess.html
index fe898d71c0..dfe48d1de2 100644
--- a/leo_ast/access/struct.MemberAccess.html
+++ b/leo_ast/access/struct.MemberAccess.html
@@ -1,15 +1,15 @@
MemberAccess in leo_ast::access - Rust Struct leo_ast::access::MemberAccess
source · pub struct MemberAccess {
pub inner: Box<Expression>,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct member access expression inner.name
to some structure with named members.
Fields§
§inner: Box<Expression>
The inner struct that is being accessed.
§name: Identifier
The name of the struct member to access.
-§span: Span
The span covering all of inner.name
.
+§span: Span
The span covering all of inner.name
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for MemberAccess
source§fn clone(&self) -> MemberAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemberAccess
source§impl<'de> Deserialize<'de> for MemberAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§fn eq(&self, other: &MemberAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MemberAccess
source§impl Eq for MemberAccess
source§impl StructuralPartialEq for MemberAccess
Auto Trait Implementations§
§impl Freeze for MemberAccess
§impl RefUnwindSafe for MemberAccess
§impl Send for MemberAccess
§impl Sync for MemberAccess
§impl Unpin for MemberAccess
§impl UnwindSafe for MemberAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.TupleAccess.html b/leo_ast/access/struct.TupleAccess.html
index cbffd52236..7dfaa88152 100644
--- a/leo_ast/access/struct.TupleAccess.html
+++ b/leo_ast/access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access - Rust Struct leo_ast::access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/tuple_access/struct.TupleAccess.html b/leo_ast/access/tuple_access/struct.TupleAccess.html
index 987ba8e475..e3d9797579 100644
--- a/leo_ast/access/tuple_access/struct.TupleAccess.html
+++ b/leo_ast/access/tuple_access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access::tuple_access - Rust Struct leo_ast::access::tuple_access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/common/identifier/struct.Identifier.html b/leo_ast/common/identifier/struct.Identifier.html
index ff891a31dd..98f9bce091 100644
--- a/leo_ast/common/identifier/struct.Identifier.html
+++ b/leo_ast/common/identifier/struct.Identifier.html
@@ -1,21 +1,21 @@
Identifier in leo_ast::common::identifier - Rust Struct leo_ast::common::identifier::Identifier
source · pub struct Identifier {
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An identifier in a program.
Attention - When adding or removing fields from this struct,
please remember to update its Serialize and Deserialize implementation
to reflect the new struct instantiation.
-Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
-§span: Span
A span locating where the identifier occurred in the source.
+Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
+§span: Span
A span locating where the identifier occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl Identifier
sourcepub fn new(name: Symbol, id: NodeID) -> Self
Constructs a new identifier with name
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.source§impl Hash for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
diff --git a/leo_ast/common/imported_modules/fn.deserialize.html b/leo_ast/common/imported_modules/fn.deserialize.html
index 9fb6d7b4aa..65f29f75d9 100644
--- a/leo_ast/common/imported_modules/fn.deserialize.html
+++ b/leo_ast/common/imported_modules/fn.deserialize.html
@@ -1,3 +1,3 @@
deserialize in leo_ast::common::imported_modules - Rust Function leo_ast::common::imported_modules::deserialize
source · pub fn deserialize<'de, D: Deserializer<'de>>(
deserializer: D,
-) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
+) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
diff --git a/leo_ast/common/imported_modules/fn.serialize.html b/leo_ast/common/imported_modules/fn.serialize.html
index 2fa175237f..21cc4f002b 100644
--- a/leo_ast/common/imported_modules/fn.serialize.html
+++ b/leo_ast/common/imported_modules/fn.serialize.html
@@ -1,4 +1,4 @@
serialize in leo_ast::common::imported_modules - Rust
\ No newline at end of file
diff --git a/leo_ast/common/location/struct.Location.html b/leo_ast/common/location/struct.Location.html
index 2cfac147e7..543aca84f6 100644
--- a/leo_ast/common/location/struct.Location.html
+++ b/leo_ast/common/location/struct.Location.html
@@ -1,12 +1,12 @@
Location in leo_ast::common::location - Rust pub struct Location {
- pub program: Option<Symbol>,
- pub name: Symbol,
-}
Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
+ pub program: Option<Symbol>,
+ pub name: Symbol,
+}Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<&CompositeType> for Location
source§fn from(composite: &CompositeType) -> Location
Converts to this type from the input type.source§impl PartialEq for Location
source§impl Eq for Location
source§impl StructuralPartialEq for Location
Auto Trait Implementations§
§impl Freeze for Location
§impl RefUnwindSafe for Location
§impl Send for Location
§impl Sync for Location
§impl Unpin for Location
§impl UnwindSafe for Location
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/common/node/trait.Node.html b/leo_ast/common/node/trait.Node.html
index 2af510d1d8..27e7284f7e 100644
--- a/leo_ast/common/node/trait.Node.html
+++ b/leo_ast/common/node/trait.Node.html
@@ -1,12 +1,12 @@
Node in leo_ast::common::node - Rust pub trait Node: Debug + Display + Clone + PartialEq + Eq + Serialize + DeserializeOwned {
// Required methods
- fn span(&self) -> Span;
- fn set_span(&mut self, span: Span);
+ fn span(&self) -> Span;
+ fn set_span(&mut self, span: Span);
fn id(&self) -> NodeID;
fn set_id(&mut self, id: NodeID);
}
Expand description
A node in the AST.
-Required Methods§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl Node for AccessExpression
source§impl Node for Expression
source§impl Node for Literal
source§impl Node for Statement
source§impl Node for ArrayAccess
source§impl Node for AssociatedConstant
source§impl Node for AssociatedFunction
source§impl Node for MemberAccess
source§impl Node for TupleAccess
source§impl Node for ArrayExpression
source§impl Node for BinaryExpression
source§impl Node for CallExpression
source§impl Node for CastExpression
source§impl Node for ErrExpression
source§impl Node for LocatorExpression
source§impl Node for StructExpression
source§impl Node for StructVariableInitializer
source§impl Node for TernaryExpression
source§impl Node for TupleExpression
source§impl Node for UnaryExpression
source§impl Node for UnitExpression
source§impl Node for Annotation
source§impl Node for Input
source§impl Node for Output
source§impl Node for Function
source§impl Node for Mapping
source§impl Node for AssertStatement
source§impl Node for AssignStatement
source§impl Node for Block
source§impl Node for ConditionalStatement
source§impl Node for ConsoleStatement
source§impl Node for ConstDeclaration
source§impl Node for DefinitionStatement
source§impl Node for ExpressionStatement
source§impl Node for IterationStatement
source§impl Node for ReturnStatement
source§impl Node for Member
source§impl Node for Composite
source§impl Node for FunctionStub
source§impl Node for Identifier
\ No newline at end of file
diff --git a/leo_ast/expressions/access/enum.AccessExpression.html b/leo_ast/expressions/access/enum.AccessExpression.html
index 82da863240..d4b7409cd7 100644
--- a/leo_ast/expressions/access/enum.AccessExpression.html
+++ b/leo_ast/expressions/access/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/array/struct.ArrayExpression.html b/leo_ast/expressions/array/struct.ArrayExpression.html
index 942e247033..9417f26ecf 100644
--- a/leo_ast/expressions/array/struct.ArrayExpression.html
+++ b/leo_ast/expressions/array/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions::array - Rust Struct leo_ast::expressions::array::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/binary/enum.BinaryOperation.html b/leo_ast/expressions/binary/enum.BinaryOperation.html
index ad20b0114b..b62052b910 100644
--- a/leo_ast/expressions/binary/enum.BinaryOperation.html
+++ b/leo_ast/expressions/binary/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/binary/struct.BinaryExpression.html b/leo_ast/expressions/binary/struct.BinaryExpression.html
index e016cf94e5..9f705dd3d0 100644
--- a/leo_ast/expressions/binary/struct.BinaryExpression.html
+++ b/leo_ast/expressions/binary/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/call/struct.CallExpression.html b/leo_ast/expressions/call/struct.CallExpression.html
index 7f2b455757..41f0063520 100644
--- a/leo_ast/expressions/call/struct.CallExpression.html
+++ b/leo_ast/expressions/call/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions::call - Rust Struct leo_ast::expressions::call::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html
index 59684ab601..af6a90da32 100644
--- a/leo_ast/expressions/cast/struct.CastExpression.html
+++ b/leo_ast/expressions/cast/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions::cast - Rust Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
§Unary(UnaryExpression)
An unary expression.
§Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
source§fn clone(&self) -> Expression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
source§impl Eq for Expression
source§impl StructuralPartialEq for Expression
Auto Trait Implementations§
§impl Freeze for Expression
§impl RefUnwindSafe for Expression
§impl Send for Expression
§impl Sync for Expression
§impl Unpin for Expression
§impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
impl<T> Any for Twhere
diff --git a/leo_ast/access/associated_constant_access/struct.AssociatedConstant.html b/leo_ast/access/associated_constant_access/struct.AssociatedConstant.html
index f4092a310b..06cb549cd6 100644
--- a/leo_ast/access/associated_constant_access/struct.AssociatedConstant.html
+++ b/leo_ast/access/associated_constant_access/struct.AssociatedConstant.html
@@ -1,15 +1,15 @@
AssociatedConstant in leo_ast::access::associated_constant_access - Rust pub struct AssociatedConstant {
pub ty: Type,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An access expression to an struct constant., e.g. u8::MAX
.
Fields§
§ty: Type
The inner struct type.
§name: Identifier
The struct constant that is being accessed.
-§span: Span
The span for the entire expression Foo::bar()
.
+§span: Span
The span for the entire expression Foo::bar()
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for AssociatedConstant
source§fn clone(&self) -> AssociatedConstant
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AssociatedConstant
source§impl<'de> Deserialize<'de> for AssociatedConstant
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AssociatedConstant
source§impl Node for AssociatedConstant
source§impl PartialEq for AssociatedConstant
source§impl Display for AssociatedConstant
source§impl Node for AssociatedConstant
source§impl PartialEq for AssociatedConstant
source§fn eq(&self, other: &AssociatedConstant) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AssociatedConstant
source§impl Eq for AssociatedConstant
source§impl StructuralPartialEq for AssociatedConstant
Auto Trait Implementations§
§impl Freeze for AssociatedConstant
§impl RefUnwindSafe for AssociatedConstant
§impl Send for AssociatedConstant
§impl Sync for AssociatedConstant
§impl Unpin for AssociatedConstant
§impl UnwindSafe for AssociatedConstant
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/associated_function_access/struct.AssociatedFunction.html b/leo_ast/access/associated_function_access/struct.AssociatedFunction.html
index a1273c79ac..2d8b7fb2d8 100644
--- a/leo_ast/access/associated_function_access/struct.AssociatedFunction.html
+++ b/leo_ast/access/associated_function_access/struct.AssociatedFunction.html
@@ -2,16 +2,16 @@
pub variant: Identifier,
pub name: Identifier,
pub arguments: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
An access expression to an associated function in a struct, e.g.Pedersen64::hash()
.
Fields§
§variant: Identifier
The inner struct variant.
§name: Identifier
The static struct member function that is being accessed.
§arguments: Vec<Expression>
The arguments passed to the function name
.
-§span: Span
The span for the entire expression Foo::bar()
.
+§span: Span
The span for the entire expression Foo::bar()
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for AssociatedFunction
source§fn clone(&self) -> AssociatedFunction
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AssociatedFunction
source§impl<'de> Deserialize<'de> for AssociatedFunction
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
source§impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
source§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
source§impl Eq for AssociatedFunction
source§impl StructuralPartialEq for AssociatedFunction
Auto Trait Implementations§
§impl Freeze for AssociatedFunction
§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> Any for Twhere
diff --git a/leo_ast/access/member_access/struct.MemberAccess.html b/leo_ast/access/member_access/struct.MemberAccess.html
index cf1239ba5c..a1659ffe4e 100644
--- a/leo_ast/access/member_access/struct.MemberAccess.html
+++ b/leo_ast/access/member_access/struct.MemberAccess.html
@@ -1,15 +1,15 @@
MemberAccess in leo_ast::access::member_access - Rust Struct leo_ast::access::member_access::MemberAccess
source · pub struct MemberAccess {
pub inner: Box<Expression>,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct member access expression inner.name
to some structure with named members.
Fields§
§inner: Box<Expression>
The inner struct that is being accessed.
§name: Identifier
The name of the struct member to access.
-§span: Span
The span covering all of inner.name
.
+§span: Span
The span covering all of inner.name
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for MemberAccess
source§fn clone(&self) -> MemberAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemberAccess
source§impl<'de> Deserialize<'de> for MemberAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§fn eq(&self, other: &MemberAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MemberAccess
source§impl Eq for MemberAccess
source§impl StructuralPartialEq for MemberAccess
Auto Trait Implementations§
§impl Freeze for MemberAccess
§impl RefUnwindSafe for MemberAccess
§impl Send for MemberAccess
§impl Sync for MemberAccess
§impl Unpin for MemberAccess
§impl UnwindSafe for MemberAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.ArrayAccess.html b/leo_ast/access/struct.ArrayAccess.html
index 146ae7d04d..598746ab02 100644
--- a/leo_ast/access/struct.ArrayAccess.html
+++ b/leo_ast/access/struct.ArrayAccess.html
@@ -1,15 +1,15 @@
ArrayAccess in leo_ast::access - Rust Struct leo_ast::access::ArrayAccess
source · pub struct ArrayAccess {
pub array: Box<Expression>,
pub index: Box<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array access expression, e.g., foo[index]
.
Fields§
§array: Box<Expression>
An expression evaluating to some array type, e.g., [false, true]
.
§index: Box<Expression>
The index to access in the array expression. E.g., 0
for [false, true]
would yield false
.
-§span: Span
The span for the entire expression foo[index]
.
+§span: Span
The span for the entire expression foo[index]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayAccess
source§fn clone(&self) -> ArrayAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayAccess
source§impl<'de> Deserialize<'de> for ArrayAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayAccess
source§impl Node for ArrayAccess
source§impl PartialEq for ArrayAccess
source§impl Display for ArrayAccess
source§impl Node for ArrayAccess
source§impl PartialEq for ArrayAccess
source§fn eq(&self, other: &ArrayAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayAccess
source§impl Eq for ArrayAccess
source§impl StructuralPartialEq for ArrayAccess
Auto Trait Implementations§
§impl Freeze for ArrayAccess
§impl RefUnwindSafe for ArrayAccess
§impl Send for ArrayAccess
§impl Sync for ArrayAccess
§impl Unpin for ArrayAccess
§impl UnwindSafe for ArrayAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.AssociatedConstant.html b/leo_ast/access/struct.AssociatedConstant.html
index 0fa205198d..58a61233ab 100644
--- a/leo_ast/access/struct.AssociatedConstant.html
+++ b/leo_ast/access/struct.AssociatedConstant.html
@@ -1,15 +1,15 @@
AssociatedConstant in leo_ast::access - Rust Struct leo_ast::access::AssociatedConstant
source · pub struct AssociatedConstant {
pub ty: Type,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An access expression to an struct constant., e.g. u8::MAX
.
Fields§
§ty: Type
The inner struct type.
§name: Identifier
The struct constant that is being accessed.
-§span: Span
The span for the entire expression Foo::bar()
.
+§span: Span
The span for the entire expression Foo::bar()
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for AssociatedConstant
source§fn clone(&self) -> AssociatedConstant
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AssociatedConstant
source§impl<'de> Deserialize<'de> for AssociatedConstant
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AssociatedConstant
source§impl Node for AssociatedConstant
source§impl PartialEq for AssociatedConstant
source§impl Display for AssociatedConstant
source§impl Node for AssociatedConstant
source§impl PartialEq for AssociatedConstant
source§fn eq(&self, other: &AssociatedConstant) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AssociatedConstant
source§impl Eq for AssociatedConstant
source§impl StructuralPartialEq for AssociatedConstant
Auto Trait Implementations§
§impl Freeze for AssociatedConstant
§impl RefUnwindSafe for AssociatedConstant
§impl Send for AssociatedConstant
§impl Sync for AssociatedConstant
§impl Unpin for AssociatedConstant
§impl UnwindSafe for AssociatedConstant
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.AssociatedFunction.html b/leo_ast/access/struct.AssociatedFunction.html
index ad16e78964..a56ee09ecc 100644
--- a/leo_ast/access/struct.AssociatedFunction.html
+++ b/leo_ast/access/struct.AssociatedFunction.html
@@ -2,16 +2,16 @@
pub variant: Identifier,
pub name: Identifier,
pub arguments: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
An access expression to an associated function in a struct, e.g.Pedersen64::hash()
.
Fields§
§variant: Identifier
The inner struct variant.
§name: Identifier
The static struct member function that is being accessed.
§arguments: Vec<Expression>
The arguments passed to the function name
.
-§span: Span
The span for the entire expression Foo::bar()
.
+§span: Span
The span for the entire expression Foo::bar()
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for AssociatedFunction
source§fn clone(&self) -> AssociatedFunction
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AssociatedFunction
source§impl<'de> Deserialize<'de> for AssociatedFunction
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
source§impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
source§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
source§impl Eq for AssociatedFunction
source§impl StructuralPartialEq for AssociatedFunction
Auto Trait Implementations§
§impl Freeze for AssociatedFunction
§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> Any for Twhere
diff --git a/leo_ast/access/struct.MemberAccess.html b/leo_ast/access/struct.MemberAccess.html
index fe898d71c0..dfe48d1de2 100644
--- a/leo_ast/access/struct.MemberAccess.html
+++ b/leo_ast/access/struct.MemberAccess.html
@@ -1,15 +1,15 @@
MemberAccess in leo_ast::access - Rust Struct leo_ast::access::MemberAccess
source · pub struct MemberAccess {
pub inner: Box<Expression>,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct member access expression inner.name
to some structure with named members.
Fields§
§inner: Box<Expression>
The inner struct that is being accessed.
§name: Identifier
The name of the struct member to access.
-§span: Span
The span covering all of inner.name
.
+§span: Span
The span covering all of inner.name
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for MemberAccess
source§fn clone(&self) -> MemberAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemberAccess
source§impl<'de> Deserialize<'de> for MemberAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§fn eq(&self, other: &MemberAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MemberAccess
source§impl Eq for MemberAccess
source§impl StructuralPartialEq for MemberAccess
Auto Trait Implementations§
§impl Freeze for MemberAccess
§impl RefUnwindSafe for MemberAccess
§impl Send for MemberAccess
§impl Sync for MemberAccess
§impl Unpin for MemberAccess
§impl UnwindSafe for MemberAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.TupleAccess.html b/leo_ast/access/struct.TupleAccess.html
index cbffd52236..7dfaa88152 100644
--- a/leo_ast/access/struct.TupleAccess.html
+++ b/leo_ast/access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access - Rust Struct leo_ast::access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/tuple_access/struct.TupleAccess.html b/leo_ast/access/tuple_access/struct.TupleAccess.html
index 987ba8e475..e3d9797579 100644
--- a/leo_ast/access/tuple_access/struct.TupleAccess.html
+++ b/leo_ast/access/tuple_access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access::tuple_access - Rust Struct leo_ast::access::tuple_access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/common/identifier/struct.Identifier.html b/leo_ast/common/identifier/struct.Identifier.html
index ff891a31dd..98f9bce091 100644
--- a/leo_ast/common/identifier/struct.Identifier.html
+++ b/leo_ast/common/identifier/struct.Identifier.html
@@ -1,21 +1,21 @@
Identifier in leo_ast::common::identifier - Rust Struct leo_ast::common::identifier::Identifier
source · pub struct Identifier {
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An identifier in a program.
Attention - When adding or removing fields from this struct,
please remember to update its Serialize and Deserialize implementation
to reflect the new struct instantiation.
-Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
-§span: Span
A span locating where the identifier occurred in the source.
+Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
+§span: Span
A span locating where the identifier occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl Identifier
sourcepub fn new(name: Symbol, id: NodeID) -> Self
Constructs a new identifier with name
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.source§impl Hash for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
diff --git a/leo_ast/common/imported_modules/fn.deserialize.html b/leo_ast/common/imported_modules/fn.deserialize.html
index 9fb6d7b4aa..65f29f75d9 100644
--- a/leo_ast/common/imported_modules/fn.deserialize.html
+++ b/leo_ast/common/imported_modules/fn.deserialize.html
@@ -1,3 +1,3 @@
deserialize in leo_ast::common::imported_modules - Rust Function leo_ast::common::imported_modules::deserialize
source · pub fn deserialize<'de, D: Deserializer<'de>>(
deserializer: D,
-) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
+) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
diff --git a/leo_ast/common/imported_modules/fn.serialize.html b/leo_ast/common/imported_modules/fn.serialize.html
index 2fa175237f..21cc4f002b 100644
--- a/leo_ast/common/imported_modules/fn.serialize.html
+++ b/leo_ast/common/imported_modules/fn.serialize.html
@@ -1,4 +1,4 @@
serialize in leo_ast::common::imported_modules - Rust
\ No newline at end of file
diff --git a/leo_ast/common/location/struct.Location.html b/leo_ast/common/location/struct.Location.html
index 2cfac147e7..543aca84f6 100644
--- a/leo_ast/common/location/struct.Location.html
+++ b/leo_ast/common/location/struct.Location.html
@@ -1,12 +1,12 @@
Location in leo_ast::common::location - Rust pub struct Location {
- pub program: Option<Symbol>,
- pub name: Symbol,
-}
Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
+ pub program: Option<Symbol>,
+ pub name: Symbol,
+}Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<&CompositeType> for Location
source§fn from(composite: &CompositeType) -> Location
Converts to this type from the input type.source§impl PartialEq for Location
source§impl Eq for Location
source§impl StructuralPartialEq for Location
Auto Trait Implementations§
§impl Freeze for Location
§impl RefUnwindSafe for Location
§impl Send for Location
§impl Sync for Location
§impl Unpin for Location
§impl UnwindSafe for Location
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/common/node/trait.Node.html b/leo_ast/common/node/trait.Node.html
index 2af510d1d8..27e7284f7e 100644
--- a/leo_ast/common/node/trait.Node.html
+++ b/leo_ast/common/node/trait.Node.html
@@ -1,12 +1,12 @@
Node in leo_ast::common::node - Rust pub trait Node: Debug + Display + Clone + PartialEq + Eq + Serialize + DeserializeOwned {
// Required methods
- fn span(&self) -> Span;
- fn set_span(&mut self, span: Span);
+ fn span(&self) -> Span;
+ fn set_span(&mut self, span: Span);
fn id(&self) -> NodeID;
fn set_id(&mut self, id: NodeID);
}
Expand description
A node in the AST.
-Required Methods§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl Node for AccessExpression
source§impl Node for Expression
source§impl Node for Literal
source§impl Node for Statement
source§impl Node for ArrayAccess
source§impl Node for AssociatedConstant
source§impl Node for AssociatedFunction
source§impl Node for MemberAccess
source§impl Node for TupleAccess
source§impl Node for ArrayExpression
source§impl Node for BinaryExpression
source§impl Node for CallExpression
source§impl Node for CastExpression
source§impl Node for ErrExpression
source§impl Node for LocatorExpression
source§impl Node for StructExpression
source§impl Node for StructVariableInitializer
source§impl Node for TernaryExpression
source§impl Node for TupleExpression
source§impl Node for UnaryExpression
source§impl Node for UnitExpression
source§impl Node for Annotation
source§impl Node for Input
source§impl Node for Output
source§impl Node for Function
source§impl Node for Mapping
source§impl Node for AssertStatement
source§impl Node for AssignStatement
source§impl Node for Block
source§impl Node for ConditionalStatement
source§impl Node for ConsoleStatement
source§impl Node for ConstDeclaration
source§impl Node for DefinitionStatement
source§impl Node for ExpressionStatement
source§impl Node for IterationStatement
source§impl Node for ReturnStatement
source§impl Node for Member
source§impl Node for Composite
source§impl Node for FunctionStub
source§impl Node for Identifier
\ No newline at end of file
diff --git a/leo_ast/expressions/access/enum.AccessExpression.html b/leo_ast/expressions/access/enum.AccessExpression.html
index 82da863240..d4b7409cd7 100644
--- a/leo_ast/expressions/access/enum.AccessExpression.html
+++ b/leo_ast/expressions/access/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/array/struct.ArrayExpression.html b/leo_ast/expressions/array/struct.ArrayExpression.html
index 942e247033..9417f26ecf 100644
--- a/leo_ast/expressions/array/struct.ArrayExpression.html
+++ b/leo_ast/expressions/array/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions::array - Rust Struct leo_ast::expressions::array::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/binary/enum.BinaryOperation.html b/leo_ast/expressions/binary/enum.BinaryOperation.html
index ad20b0114b..b62052b910 100644
--- a/leo_ast/expressions/binary/enum.BinaryOperation.html
+++ b/leo_ast/expressions/binary/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/binary/struct.BinaryExpression.html b/leo_ast/expressions/binary/struct.BinaryExpression.html
index e016cf94e5..9f705dd3d0 100644
--- a/leo_ast/expressions/binary/struct.BinaryExpression.html
+++ b/leo_ast/expressions/binary/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/call/struct.CallExpression.html b/leo_ast/expressions/call/struct.CallExpression.html
index 7f2b455757..41f0063520 100644
--- a/leo_ast/expressions/call/struct.CallExpression.html
+++ b/leo_ast/expressions/call/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions::call - Rust Struct leo_ast::expressions::call::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html
index 59684ab601..af6a90da32 100644
--- a/leo_ast/expressions/cast/struct.CastExpression.html
+++ b/leo_ast/expressions/cast/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions::cast - Rust Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
§Unary(UnaryExpression)
An unary expression.
§Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
source§fn clone(&self) -> Expression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
source§impl Eq for Expression
source§impl StructuralPartialEq for Expression
Auto Trait Implementations§
§impl Freeze for Expression
§impl RefUnwindSafe for Expression
§impl Send for Expression
§impl Sync for Expression
§impl Unpin for Expression
§impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
pub struct AssociatedConstant {
pub ty: Type,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An access expression to an struct constant., e.g. u8::MAX
.
Fields§
§ty: Type
The inner struct type.
name: Identifier
The struct constant that is being accessed.
-span: Span
The span for the entire expression Foo::bar()
.
span: Span
The span for the entire expression Foo::bar()
.
id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for AssociatedConstant
impl Clone for AssociatedConstant
source§fn clone(&self) -> AssociatedConstant
fn clone(&self) -> AssociatedConstant
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AssociatedConstant
impl Debug for AssociatedConstant
source§impl<'de> Deserialize<'de> for AssociatedConstant
impl<'de> Deserialize<'de> for AssociatedConstant
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>,
source§impl Display for AssociatedConstant
impl Display for AssociatedConstant
source§impl Node for AssociatedConstant
impl Node for AssociatedConstant
source§impl PartialEq for AssociatedConstant
impl PartialEq for AssociatedConstant
source§impl Display for AssociatedConstant
impl Display for AssociatedConstant
source§impl Node for AssociatedConstant
impl Node for AssociatedConstant
source§impl PartialEq for AssociatedConstant
impl PartialEq for AssociatedConstant
source§fn eq(&self, other: &AssociatedConstant) -> bool
fn eq(&self, other: &AssociatedConstant) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AssociatedConstant
impl Serialize for AssociatedConstant
impl Eq for AssociatedConstant
impl StructuralPartialEq for AssociatedConstant
Auto Trait Implementations§
impl Freeze for AssociatedConstant
impl RefUnwindSafe for AssociatedConstant
impl Send for AssociatedConstant
impl Sync for AssociatedConstant
impl Unpin for AssociatedConstant
impl UnwindSafe for AssociatedConstant
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/associated_function_access/struct.AssociatedFunction.html b/leo_ast/access/associated_function_access/struct.AssociatedFunction.html
index a1273c79ac..2d8b7fb2d8 100644
--- a/leo_ast/access/associated_function_access/struct.AssociatedFunction.html
+++ b/leo_ast/access/associated_function_access/struct.AssociatedFunction.html
@@ -2,16 +2,16 @@
pub variant: Identifier,
pub name: Identifier,
pub arguments: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
An access expression to an associated function in a struct, e.g.Pedersen64::hash()
.
Fields§
§variant: Identifier
The inner struct variant.
§name: Identifier
The static struct member function that is being accessed.
§arguments: Vec<Expression>
The arguments passed to the function name
.
-§span: Span
The span for the entire expression Foo::bar()
.
+§span: Span
The span for the entire expression Foo::bar()
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for AssociatedFunction
source§fn clone(&self) -> AssociatedFunction
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AssociatedFunction
source§impl<'de> Deserialize<'de> for AssociatedFunction
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
source§impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
source§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
source§impl Eq for AssociatedFunction
source§impl StructuralPartialEq for AssociatedFunction
Auto Trait Implementations§
§impl Freeze for AssociatedFunction
§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> Any for Twhere
diff --git a/leo_ast/access/member_access/struct.MemberAccess.html b/leo_ast/access/member_access/struct.MemberAccess.html
index cf1239ba5c..a1659ffe4e 100644
--- a/leo_ast/access/member_access/struct.MemberAccess.html
+++ b/leo_ast/access/member_access/struct.MemberAccess.html
@@ -1,15 +1,15 @@
MemberAccess in leo_ast::access::member_access - Rust Struct leo_ast::access::member_access::MemberAccess
source · pub struct MemberAccess {
pub inner: Box<Expression>,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct member access expression inner.name
to some structure with named members.
Fields§
§inner: Box<Expression>
The inner struct that is being accessed.
§name: Identifier
The name of the struct member to access.
-§span: Span
The span covering all of inner.name
.
+§span: Span
The span covering all of inner.name
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for MemberAccess
source§fn clone(&self) -> MemberAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemberAccess
source§impl<'de> Deserialize<'de> for MemberAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§fn eq(&self, other: &MemberAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MemberAccess
source§impl Eq for MemberAccess
source§impl StructuralPartialEq for MemberAccess
Auto Trait Implementations§
§impl Freeze for MemberAccess
§impl RefUnwindSafe for MemberAccess
§impl Send for MemberAccess
§impl Sync for MemberAccess
§impl Unpin for MemberAccess
§impl UnwindSafe for MemberAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.ArrayAccess.html b/leo_ast/access/struct.ArrayAccess.html
index 146ae7d04d..598746ab02 100644
--- a/leo_ast/access/struct.ArrayAccess.html
+++ b/leo_ast/access/struct.ArrayAccess.html
@@ -1,15 +1,15 @@
ArrayAccess in leo_ast::access - Rust Struct leo_ast::access::ArrayAccess
source · pub struct ArrayAccess {
pub array: Box<Expression>,
pub index: Box<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array access expression, e.g., foo[index]
.
Fields§
§array: Box<Expression>
An expression evaluating to some array type, e.g., [false, true]
.
§index: Box<Expression>
The index to access in the array expression. E.g., 0
for [false, true]
would yield false
.
-§span: Span
The span for the entire expression foo[index]
.
+§span: Span
The span for the entire expression foo[index]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayAccess
source§fn clone(&self) -> ArrayAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayAccess
source§impl<'de> Deserialize<'de> for ArrayAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayAccess
source§impl Node for ArrayAccess
source§impl PartialEq for ArrayAccess
source§impl Display for ArrayAccess
source§impl Node for ArrayAccess
source§impl PartialEq for ArrayAccess
source§fn eq(&self, other: &ArrayAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayAccess
source§impl Eq for ArrayAccess
source§impl StructuralPartialEq for ArrayAccess
Auto Trait Implementations§
§impl Freeze for ArrayAccess
§impl RefUnwindSafe for ArrayAccess
§impl Send for ArrayAccess
§impl Sync for ArrayAccess
§impl Unpin for ArrayAccess
§impl UnwindSafe for ArrayAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.AssociatedConstant.html b/leo_ast/access/struct.AssociatedConstant.html
index 0fa205198d..58a61233ab 100644
--- a/leo_ast/access/struct.AssociatedConstant.html
+++ b/leo_ast/access/struct.AssociatedConstant.html
@@ -1,15 +1,15 @@
AssociatedConstant in leo_ast::access - Rust Struct leo_ast::access::AssociatedConstant
source · pub struct AssociatedConstant {
pub ty: Type,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An access expression to an struct constant., e.g. u8::MAX
.
Fields§
§ty: Type
The inner struct type.
§name: Identifier
The struct constant that is being accessed.
-§span: Span
The span for the entire expression Foo::bar()
.
+§span: Span
The span for the entire expression Foo::bar()
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for AssociatedConstant
source§fn clone(&self) -> AssociatedConstant
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AssociatedConstant
source§impl<'de> Deserialize<'de> for AssociatedConstant
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AssociatedConstant
source§impl Node for AssociatedConstant
source§impl PartialEq for AssociatedConstant
source§impl Display for AssociatedConstant
source§impl Node for AssociatedConstant
source§impl PartialEq for AssociatedConstant
source§fn eq(&self, other: &AssociatedConstant) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AssociatedConstant
source§impl Eq for AssociatedConstant
source§impl StructuralPartialEq for AssociatedConstant
Auto Trait Implementations§
§impl Freeze for AssociatedConstant
§impl RefUnwindSafe for AssociatedConstant
§impl Send for AssociatedConstant
§impl Sync for AssociatedConstant
§impl Unpin for AssociatedConstant
§impl UnwindSafe for AssociatedConstant
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.AssociatedFunction.html b/leo_ast/access/struct.AssociatedFunction.html
index ad16e78964..a56ee09ecc 100644
--- a/leo_ast/access/struct.AssociatedFunction.html
+++ b/leo_ast/access/struct.AssociatedFunction.html
@@ -2,16 +2,16 @@
pub variant: Identifier,
pub name: Identifier,
pub arguments: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
An access expression to an associated function in a struct, e.g.Pedersen64::hash()
.
Fields§
§variant: Identifier
The inner struct variant.
§name: Identifier
The static struct member function that is being accessed.
§arguments: Vec<Expression>
The arguments passed to the function name
.
-§span: Span
The span for the entire expression Foo::bar()
.
+§span: Span
The span for the entire expression Foo::bar()
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for AssociatedFunction
source§fn clone(&self) -> AssociatedFunction
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AssociatedFunction
source§impl<'de> Deserialize<'de> for AssociatedFunction
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
source§impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
source§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
source§impl Eq for AssociatedFunction
source§impl StructuralPartialEq for AssociatedFunction
Auto Trait Implementations§
§impl Freeze for AssociatedFunction
§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> Any for Twhere
diff --git a/leo_ast/access/struct.MemberAccess.html b/leo_ast/access/struct.MemberAccess.html
index fe898d71c0..dfe48d1de2 100644
--- a/leo_ast/access/struct.MemberAccess.html
+++ b/leo_ast/access/struct.MemberAccess.html
@@ -1,15 +1,15 @@
MemberAccess in leo_ast::access - Rust Struct leo_ast::access::MemberAccess
source · pub struct MemberAccess {
pub inner: Box<Expression>,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct member access expression inner.name
to some structure with named members.
Fields§
§inner: Box<Expression>
The inner struct that is being accessed.
§name: Identifier
The name of the struct member to access.
-§span: Span
The span covering all of inner.name
.
+§span: Span
The span covering all of inner.name
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for MemberAccess
source§fn clone(&self) -> MemberAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemberAccess
source§impl<'de> Deserialize<'de> for MemberAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§fn eq(&self, other: &MemberAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MemberAccess
source§impl Eq for MemberAccess
source§impl StructuralPartialEq for MemberAccess
Auto Trait Implementations§
§impl Freeze for MemberAccess
§impl RefUnwindSafe for MemberAccess
§impl Send for MemberAccess
§impl Sync for MemberAccess
§impl Unpin for MemberAccess
§impl UnwindSafe for MemberAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.TupleAccess.html b/leo_ast/access/struct.TupleAccess.html
index cbffd52236..7dfaa88152 100644
--- a/leo_ast/access/struct.TupleAccess.html
+++ b/leo_ast/access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access - Rust Struct leo_ast::access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/tuple_access/struct.TupleAccess.html b/leo_ast/access/tuple_access/struct.TupleAccess.html
index 987ba8e475..e3d9797579 100644
--- a/leo_ast/access/tuple_access/struct.TupleAccess.html
+++ b/leo_ast/access/tuple_access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access::tuple_access - Rust Struct leo_ast::access::tuple_access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/common/identifier/struct.Identifier.html b/leo_ast/common/identifier/struct.Identifier.html
index ff891a31dd..98f9bce091 100644
--- a/leo_ast/common/identifier/struct.Identifier.html
+++ b/leo_ast/common/identifier/struct.Identifier.html
@@ -1,21 +1,21 @@
Identifier in leo_ast::common::identifier - Rust Struct leo_ast::common::identifier::Identifier
source · pub struct Identifier {
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An identifier in a program.
Attention - When adding or removing fields from this struct,
please remember to update its Serialize and Deserialize implementation
to reflect the new struct instantiation.
-Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
-§span: Span
A span locating where the identifier occurred in the source.
+Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
+§span: Span
A span locating where the identifier occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl Identifier
sourcepub fn new(name: Symbol, id: NodeID) -> Self
Constructs a new identifier with name
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.source§impl Hash for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
diff --git a/leo_ast/common/imported_modules/fn.deserialize.html b/leo_ast/common/imported_modules/fn.deserialize.html
index 9fb6d7b4aa..65f29f75d9 100644
--- a/leo_ast/common/imported_modules/fn.deserialize.html
+++ b/leo_ast/common/imported_modules/fn.deserialize.html
@@ -1,3 +1,3 @@
deserialize in leo_ast::common::imported_modules - Rust Function leo_ast::common::imported_modules::deserialize
source · pub fn deserialize<'de, D: Deserializer<'de>>(
deserializer: D,
-) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
+) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
diff --git a/leo_ast/common/imported_modules/fn.serialize.html b/leo_ast/common/imported_modules/fn.serialize.html
index 2fa175237f..21cc4f002b 100644
--- a/leo_ast/common/imported_modules/fn.serialize.html
+++ b/leo_ast/common/imported_modules/fn.serialize.html
@@ -1,4 +1,4 @@
serialize in leo_ast::common::imported_modules - Rust
\ No newline at end of file
diff --git a/leo_ast/common/location/struct.Location.html b/leo_ast/common/location/struct.Location.html
index 2cfac147e7..543aca84f6 100644
--- a/leo_ast/common/location/struct.Location.html
+++ b/leo_ast/common/location/struct.Location.html
@@ -1,12 +1,12 @@
Location in leo_ast::common::location - Rust pub struct Location {
- pub program: Option<Symbol>,
- pub name: Symbol,
-}
Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
+ pub program: Option<Symbol>,
+ pub name: Symbol,
+}Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<&CompositeType> for Location
source§fn from(composite: &CompositeType) -> Location
Converts to this type from the input type.source§impl PartialEq for Location
source§impl Eq for Location
source§impl StructuralPartialEq for Location
Auto Trait Implementations§
§impl Freeze for Location
§impl RefUnwindSafe for Location
§impl Send for Location
§impl Sync for Location
§impl Unpin for Location
§impl UnwindSafe for Location
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/common/node/trait.Node.html b/leo_ast/common/node/trait.Node.html
index 2af510d1d8..27e7284f7e 100644
--- a/leo_ast/common/node/trait.Node.html
+++ b/leo_ast/common/node/trait.Node.html
@@ -1,12 +1,12 @@
Node in leo_ast::common::node - Rust pub trait Node: Debug + Display + Clone + PartialEq + Eq + Serialize + DeserializeOwned {
// Required methods
- fn span(&self) -> Span;
- fn set_span(&mut self, span: Span);
+ fn span(&self) -> Span;
+ fn set_span(&mut self, span: Span);
fn id(&self) -> NodeID;
fn set_id(&mut self, id: NodeID);
}
Expand description
A node in the AST.
-Required Methods§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl Node for AccessExpression
source§impl Node for Expression
source§impl Node for Literal
source§impl Node for Statement
source§impl Node for ArrayAccess
source§impl Node for AssociatedConstant
source§impl Node for AssociatedFunction
source§impl Node for MemberAccess
source§impl Node for TupleAccess
source§impl Node for ArrayExpression
source§impl Node for BinaryExpression
source§impl Node for CallExpression
source§impl Node for CastExpression
source§impl Node for ErrExpression
source§impl Node for LocatorExpression
source§impl Node for StructExpression
source§impl Node for StructVariableInitializer
source§impl Node for TernaryExpression
source§impl Node for TupleExpression
source§impl Node for UnaryExpression
source§impl Node for UnitExpression
source§impl Node for Annotation
source§impl Node for Input
source§impl Node for Output
source§impl Node for Function
source§impl Node for Mapping
source§impl Node for AssertStatement
source§impl Node for AssignStatement
source§impl Node for Block
source§impl Node for ConditionalStatement
source§impl Node for ConsoleStatement
source§impl Node for ConstDeclaration
source§impl Node for DefinitionStatement
source§impl Node for ExpressionStatement
source§impl Node for IterationStatement
source§impl Node for ReturnStatement
source§impl Node for Member
source§impl Node for Composite
source§impl Node for FunctionStub
source§impl Node for Identifier
\ No newline at end of file
diff --git a/leo_ast/expressions/access/enum.AccessExpression.html b/leo_ast/expressions/access/enum.AccessExpression.html
index 82da863240..d4b7409cd7 100644
--- a/leo_ast/expressions/access/enum.AccessExpression.html
+++ b/leo_ast/expressions/access/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/array/struct.ArrayExpression.html b/leo_ast/expressions/array/struct.ArrayExpression.html
index 942e247033..9417f26ecf 100644
--- a/leo_ast/expressions/array/struct.ArrayExpression.html
+++ b/leo_ast/expressions/array/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions::array - Rust Struct leo_ast::expressions::array::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/binary/enum.BinaryOperation.html b/leo_ast/expressions/binary/enum.BinaryOperation.html
index ad20b0114b..b62052b910 100644
--- a/leo_ast/expressions/binary/enum.BinaryOperation.html
+++ b/leo_ast/expressions/binary/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/binary/struct.BinaryExpression.html b/leo_ast/expressions/binary/struct.BinaryExpression.html
index e016cf94e5..9f705dd3d0 100644
--- a/leo_ast/expressions/binary/struct.BinaryExpression.html
+++ b/leo_ast/expressions/binary/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/call/struct.CallExpression.html b/leo_ast/expressions/call/struct.CallExpression.html
index 7f2b455757..41f0063520 100644
--- a/leo_ast/expressions/call/struct.CallExpression.html
+++ b/leo_ast/expressions/call/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions::call - Rust Struct leo_ast::expressions::call::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html
index 59684ab601..af6a90da32 100644
--- a/leo_ast/expressions/cast/struct.CastExpression.html
+++ b/leo_ast/expressions/cast/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions::cast - Rust Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
§Unary(UnaryExpression)
An unary expression.
§Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
source§fn clone(&self) -> Expression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
source§impl Eq for Expression
source§impl StructuralPartialEq for Expression
Auto Trait Implementations§
§impl Freeze for Expression
§impl RefUnwindSafe for Expression
§impl Send for Expression
§impl Sync for Expression
§impl Unpin for Expression
§impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
impl<T> Any for Twhere
diff --git a/leo_ast/access/associated_function_access/struct.AssociatedFunction.html b/leo_ast/access/associated_function_access/struct.AssociatedFunction.html
index a1273c79ac..2d8b7fb2d8 100644
--- a/leo_ast/access/associated_function_access/struct.AssociatedFunction.html
+++ b/leo_ast/access/associated_function_access/struct.AssociatedFunction.html
@@ -2,16 +2,16 @@
pub variant: Identifier,
pub name: Identifier,
pub arguments: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
An access expression to an associated function in a struct, e.g.Pedersen64::hash()
.
Fields§
§variant: Identifier
The inner struct variant.
§name: Identifier
The static struct member function that is being accessed.
§arguments: Vec<Expression>
The arguments passed to the function name
.
-§span: Span
The span for the entire expression Foo::bar()
.
+§span: Span
The span for the entire expression Foo::bar()
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for AssociatedFunction
source§fn clone(&self) -> AssociatedFunction
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AssociatedFunction
source§impl<'de> Deserialize<'de> for AssociatedFunction
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
source§impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
source§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
source§impl Eq for AssociatedFunction
source§impl StructuralPartialEq for AssociatedFunction
Auto Trait Implementations§
§impl Freeze for AssociatedFunction
§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> Any for Twhere
diff --git a/leo_ast/access/member_access/struct.MemberAccess.html b/leo_ast/access/member_access/struct.MemberAccess.html
index cf1239ba5c..a1659ffe4e 100644
--- a/leo_ast/access/member_access/struct.MemberAccess.html
+++ b/leo_ast/access/member_access/struct.MemberAccess.html
@@ -1,15 +1,15 @@
MemberAccess in leo_ast::access::member_access - Rust Struct leo_ast::access::member_access::MemberAccess
source · pub struct MemberAccess {
pub inner: Box<Expression>,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct member access expression inner.name
to some structure with named members.
Fields§
§inner: Box<Expression>
The inner struct that is being accessed.
§name: Identifier
The name of the struct member to access.
-§span: Span
The span covering all of inner.name
.
+§span: Span
The span covering all of inner.name
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for MemberAccess
source§fn clone(&self) -> MemberAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemberAccess
source§impl<'de> Deserialize<'de> for MemberAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§fn eq(&self, other: &MemberAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MemberAccess
source§impl Eq for MemberAccess
source§impl StructuralPartialEq for MemberAccess
Auto Trait Implementations§
§impl Freeze for MemberAccess
§impl RefUnwindSafe for MemberAccess
§impl Send for MemberAccess
§impl Sync for MemberAccess
§impl Unpin for MemberAccess
§impl UnwindSafe for MemberAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.ArrayAccess.html b/leo_ast/access/struct.ArrayAccess.html
index 146ae7d04d..598746ab02 100644
--- a/leo_ast/access/struct.ArrayAccess.html
+++ b/leo_ast/access/struct.ArrayAccess.html
@@ -1,15 +1,15 @@
ArrayAccess in leo_ast::access - Rust Struct leo_ast::access::ArrayAccess
source · pub struct ArrayAccess {
pub array: Box<Expression>,
pub index: Box<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array access expression, e.g., foo[index]
.
Fields§
§array: Box<Expression>
An expression evaluating to some array type, e.g., [false, true]
.
§index: Box<Expression>
The index to access in the array expression. E.g., 0
for [false, true]
would yield false
.
-§span: Span
The span for the entire expression foo[index]
.
+§span: Span
The span for the entire expression foo[index]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayAccess
source§fn clone(&self) -> ArrayAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayAccess
source§impl<'de> Deserialize<'de> for ArrayAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayAccess
source§impl Node for ArrayAccess
source§impl PartialEq for ArrayAccess
source§impl Display for ArrayAccess
source§impl Node for ArrayAccess
source§impl PartialEq for ArrayAccess
source§fn eq(&self, other: &ArrayAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayAccess
source§impl Eq for ArrayAccess
source§impl StructuralPartialEq for ArrayAccess
Auto Trait Implementations§
§impl Freeze for ArrayAccess
§impl RefUnwindSafe for ArrayAccess
§impl Send for ArrayAccess
§impl Sync for ArrayAccess
§impl Unpin for ArrayAccess
§impl UnwindSafe for ArrayAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.AssociatedConstant.html b/leo_ast/access/struct.AssociatedConstant.html
index 0fa205198d..58a61233ab 100644
--- a/leo_ast/access/struct.AssociatedConstant.html
+++ b/leo_ast/access/struct.AssociatedConstant.html
@@ -1,15 +1,15 @@
AssociatedConstant in leo_ast::access - Rust Struct leo_ast::access::AssociatedConstant
source · pub struct AssociatedConstant {
pub ty: Type,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An access expression to an struct constant., e.g. u8::MAX
.
Fields§
§ty: Type
The inner struct type.
§name: Identifier
The struct constant that is being accessed.
-§span: Span
The span for the entire expression Foo::bar()
.
+§span: Span
The span for the entire expression Foo::bar()
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for AssociatedConstant
source§fn clone(&self) -> AssociatedConstant
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AssociatedConstant
source§impl<'de> Deserialize<'de> for AssociatedConstant
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AssociatedConstant
source§impl Node for AssociatedConstant
source§impl PartialEq for AssociatedConstant
source§impl Display for AssociatedConstant
source§impl Node for AssociatedConstant
source§impl PartialEq for AssociatedConstant
source§fn eq(&self, other: &AssociatedConstant) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AssociatedConstant
source§impl Eq for AssociatedConstant
source§impl StructuralPartialEq for AssociatedConstant
Auto Trait Implementations§
§impl Freeze for AssociatedConstant
§impl RefUnwindSafe for AssociatedConstant
§impl Send for AssociatedConstant
§impl Sync for AssociatedConstant
§impl Unpin for AssociatedConstant
§impl UnwindSafe for AssociatedConstant
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.AssociatedFunction.html b/leo_ast/access/struct.AssociatedFunction.html
index ad16e78964..a56ee09ecc 100644
--- a/leo_ast/access/struct.AssociatedFunction.html
+++ b/leo_ast/access/struct.AssociatedFunction.html
@@ -2,16 +2,16 @@
pub variant: Identifier,
pub name: Identifier,
pub arguments: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
An access expression to an associated function in a struct, e.g.Pedersen64::hash()
.
Fields§
§variant: Identifier
The inner struct variant.
§name: Identifier
The static struct member function that is being accessed.
§arguments: Vec<Expression>
The arguments passed to the function name
.
-§span: Span
The span for the entire expression Foo::bar()
.
+§span: Span
The span for the entire expression Foo::bar()
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for AssociatedFunction
source§fn clone(&self) -> AssociatedFunction
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AssociatedFunction
source§impl<'de> Deserialize<'de> for AssociatedFunction
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
source§impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
source§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
source§impl Eq for AssociatedFunction
source§impl StructuralPartialEq for AssociatedFunction
Auto Trait Implementations§
§impl Freeze for AssociatedFunction
§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> Any for Twhere
diff --git a/leo_ast/access/struct.MemberAccess.html b/leo_ast/access/struct.MemberAccess.html
index fe898d71c0..dfe48d1de2 100644
--- a/leo_ast/access/struct.MemberAccess.html
+++ b/leo_ast/access/struct.MemberAccess.html
@@ -1,15 +1,15 @@
MemberAccess in leo_ast::access - Rust Struct leo_ast::access::MemberAccess
source · pub struct MemberAccess {
pub inner: Box<Expression>,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct member access expression inner.name
to some structure with named members.
Fields§
§inner: Box<Expression>
The inner struct that is being accessed.
§name: Identifier
The name of the struct member to access.
-§span: Span
The span covering all of inner.name
.
+§span: Span
The span covering all of inner.name
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for MemberAccess
source§fn clone(&self) -> MemberAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemberAccess
source§impl<'de> Deserialize<'de> for MemberAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§fn eq(&self, other: &MemberAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MemberAccess
source§impl Eq for MemberAccess
source§impl StructuralPartialEq for MemberAccess
Auto Trait Implementations§
§impl Freeze for MemberAccess
§impl RefUnwindSafe for MemberAccess
§impl Send for MemberAccess
§impl Sync for MemberAccess
§impl Unpin for MemberAccess
§impl UnwindSafe for MemberAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.TupleAccess.html b/leo_ast/access/struct.TupleAccess.html
index cbffd52236..7dfaa88152 100644
--- a/leo_ast/access/struct.TupleAccess.html
+++ b/leo_ast/access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access - Rust Struct leo_ast::access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/tuple_access/struct.TupleAccess.html b/leo_ast/access/tuple_access/struct.TupleAccess.html
index 987ba8e475..e3d9797579 100644
--- a/leo_ast/access/tuple_access/struct.TupleAccess.html
+++ b/leo_ast/access/tuple_access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access::tuple_access - Rust Struct leo_ast::access::tuple_access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/common/identifier/struct.Identifier.html b/leo_ast/common/identifier/struct.Identifier.html
index ff891a31dd..98f9bce091 100644
--- a/leo_ast/common/identifier/struct.Identifier.html
+++ b/leo_ast/common/identifier/struct.Identifier.html
@@ -1,21 +1,21 @@
Identifier in leo_ast::common::identifier - Rust Struct leo_ast::common::identifier::Identifier
source · pub struct Identifier {
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An identifier in a program.
Attention - When adding or removing fields from this struct,
please remember to update its Serialize and Deserialize implementation
to reflect the new struct instantiation.
-Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
-§span: Span
A span locating where the identifier occurred in the source.
+Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
+§span: Span
A span locating where the identifier occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl Identifier
sourcepub fn new(name: Symbol, id: NodeID) -> Self
Constructs a new identifier with name
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.source§impl Hash for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
diff --git a/leo_ast/common/imported_modules/fn.deserialize.html b/leo_ast/common/imported_modules/fn.deserialize.html
index 9fb6d7b4aa..65f29f75d9 100644
--- a/leo_ast/common/imported_modules/fn.deserialize.html
+++ b/leo_ast/common/imported_modules/fn.deserialize.html
@@ -1,3 +1,3 @@
deserialize in leo_ast::common::imported_modules - Rust Function leo_ast::common::imported_modules::deserialize
source · pub fn deserialize<'de, D: Deserializer<'de>>(
deserializer: D,
-) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
+) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
diff --git a/leo_ast/common/imported_modules/fn.serialize.html b/leo_ast/common/imported_modules/fn.serialize.html
index 2fa175237f..21cc4f002b 100644
--- a/leo_ast/common/imported_modules/fn.serialize.html
+++ b/leo_ast/common/imported_modules/fn.serialize.html
@@ -1,4 +1,4 @@
serialize in leo_ast::common::imported_modules - Rust
\ No newline at end of file
diff --git a/leo_ast/common/location/struct.Location.html b/leo_ast/common/location/struct.Location.html
index 2cfac147e7..543aca84f6 100644
--- a/leo_ast/common/location/struct.Location.html
+++ b/leo_ast/common/location/struct.Location.html
@@ -1,12 +1,12 @@
Location in leo_ast::common::location - Rust pub struct Location {
- pub program: Option<Symbol>,
- pub name: Symbol,
-}
Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
+ pub program: Option<Symbol>,
+ pub name: Symbol,
+}Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<&CompositeType> for Location
source§fn from(composite: &CompositeType) -> Location
Converts to this type from the input type.source§impl PartialEq for Location
source§impl Eq for Location
source§impl StructuralPartialEq for Location
Auto Trait Implementations§
§impl Freeze for Location
§impl RefUnwindSafe for Location
§impl Send for Location
§impl Sync for Location
§impl Unpin for Location
§impl UnwindSafe for Location
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/common/node/trait.Node.html b/leo_ast/common/node/trait.Node.html
index 2af510d1d8..27e7284f7e 100644
--- a/leo_ast/common/node/trait.Node.html
+++ b/leo_ast/common/node/trait.Node.html
@@ -1,12 +1,12 @@
Node in leo_ast::common::node - Rust pub trait Node: Debug + Display + Clone + PartialEq + Eq + Serialize + DeserializeOwned {
// Required methods
- fn span(&self) -> Span;
- fn set_span(&mut self, span: Span);
+ fn span(&self) -> Span;
+ fn set_span(&mut self, span: Span);
fn id(&self) -> NodeID;
fn set_id(&mut self, id: NodeID);
}
Expand description
A node in the AST.
-Required Methods§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl Node for AccessExpression
source§impl Node for Expression
source§impl Node for Literal
source§impl Node for Statement
source§impl Node for ArrayAccess
source§impl Node for AssociatedConstant
source§impl Node for AssociatedFunction
source§impl Node for MemberAccess
source§impl Node for TupleAccess
source§impl Node for ArrayExpression
source§impl Node for BinaryExpression
source§impl Node for CallExpression
source§impl Node for CastExpression
source§impl Node for ErrExpression
source§impl Node for LocatorExpression
source§impl Node for StructExpression
source§impl Node for StructVariableInitializer
source§impl Node for TernaryExpression
source§impl Node for TupleExpression
source§impl Node for UnaryExpression
source§impl Node for UnitExpression
source§impl Node for Annotation
source§impl Node for Input
source§impl Node for Output
source§impl Node for Function
source§impl Node for Mapping
source§impl Node for AssertStatement
source§impl Node for AssignStatement
source§impl Node for Block
source§impl Node for ConditionalStatement
source§impl Node for ConsoleStatement
source§impl Node for ConstDeclaration
source§impl Node for DefinitionStatement
source§impl Node for ExpressionStatement
source§impl Node for IterationStatement
source§impl Node for ReturnStatement
source§impl Node for Member
source§impl Node for Composite
source§impl Node for FunctionStub
source§impl Node for Identifier
\ No newline at end of file
diff --git a/leo_ast/expressions/access/enum.AccessExpression.html b/leo_ast/expressions/access/enum.AccessExpression.html
index 82da863240..d4b7409cd7 100644
--- a/leo_ast/expressions/access/enum.AccessExpression.html
+++ b/leo_ast/expressions/access/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/array/struct.ArrayExpression.html b/leo_ast/expressions/array/struct.ArrayExpression.html
index 942e247033..9417f26ecf 100644
--- a/leo_ast/expressions/array/struct.ArrayExpression.html
+++ b/leo_ast/expressions/array/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions::array - Rust Struct leo_ast::expressions::array::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/binary/enum.BinaryOperation.html b/leo_ast/expressions/binary/enum.BinaryOperation.html
index ad20b0114b..b62052b910 100644
--- a/leo_ast/expressions/binary/enum.BinaryOperation.html
+++ b/leo_ast/expressions/binary/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/binary/struct.BinaryExpression.html b/leo_ast/expressions/binary/struct.BinaryExpression.html
index e016cf94e5..9f705dd3d0 100644
--- a/leo_ast/expressions/binary/struct.BinaryExpression.html
+++ b/leo_ast/expressions/binary/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/call/struct.CallExpression.html b/leo_ast/expressions/call/struct.CallExpression.html
index 7f2b455757..41f0063520 100644
--- a/leo_ast/expressions/call/struct.CallExpression.html
+++ b/leo_ast/expressions/call/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions::call - Rust Struct leo_ast::expressions::call::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html
index 59684ab601..af6a90da32 100644
--- a/leo_ast/expressions/cast/struct.CastExpression.html
+++ b/leo_ast/expressions/cast/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions::cast - Rust Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
§Unary(UnaryExpression)
An unary expression.
§Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
source§fn clone(&self) -> Expression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
source§impl Eq for Expression
source§impl StructuralPartialEq for Expression
Auto Trait Implementations§
§impl Freeze for Expression
§impl RefUnwindSafe for Expression
§impl Send for Expression
§impl Sync for Expression
§impl Unpin for Expression
§impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
Expand description
An access expression to an associated function in a struct, e.g.Pedersen64::hash()
.
Fields§
§variant: Identifier
The inner struct variant.
name: Identifier
The static struct member function that is being accessed.
arguments: Vec<Expression>
The arguments passed to the function name
.
span: Span
The span for the entire expression Foo::bar()
.
span: Span
The span for the entire expression Foo::bar()
.
id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for AssociatedFunction
impl Clone for AssociatedFunction
source§fn clone(&self) -> AssociatedFunction
fn clone(&self) -> AssociatedFunction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
source§impl Display for AssociatedFunction
impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
impl PartialEq for AssociatedFunction
source§impl Display for AssociatedFunction
impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
impl PartialEq for AssociatedFunction
source§fn eq(&self, other: &AssociatedFunction) -> bool
fn eq(&self, other: &AssociatedFunction) -> bool
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 StructuralPartialEq for AssociatedFunction
Auto Trait Implementations§
impl Freeze for AssociatedFunction
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> Any for Twhere
diff --git a/leo_ast/access/member_access/struct.MemberAccess.html b/leo_ast/access/member_access/struct.MemberAccess.html
index cf1239ba5c..a1659ffe4e 100644
--- a/leo_ast/access/member_access/struct.MemberAccess.html
+++ b/leo_ast/access/member_access/struct.MemberAccess.html
@@ -1,15 +1,15 @@
MemberAccess in leo_ast::access::member_access - Rust Struct leo_ast::access::member_access::MemberAccess
source · pub struct MemberAccess {
pub inner: Box<Expression>,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct member access expression inner.name
to some structure with named members.
Fields§
§inner: Box<Expression>
The inner struct that is being accessed.
§name: Identifier
The name of the struct member to access.
-§span: Span
The span covering all of inner.name
.
+§span: Span
The span covering all of inner.name
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for MemberAccess
source§fn clone(&self) -> MemberAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemberAccess
source§impl<'de> Deserialize<'de> for MemberAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§fn eq(&self, other: &MemberAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MemberAccess
source§impl Eq for MemberAccess
source§impl StructuralPartialEq for MemberAccess
Auto Trait Implementations§
§impl Freeze for MemberAccess
§impl RefUnwindSafe for MemberAccess
§impl Send for MemberAccess
§impl Sync for MemberAccess
§impl Unpin for MemberAccess
§impl UnwindSafe for MemberAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.ArrayAccess.html b/leo_ast/access/struct.ArrayAccess.html
index 146ae7d04d..598746ab02 100644
--- a/leo_ast/access/struct.ArrayAccess.html
+++ b/leo_ast/access/struct.ArrayAccess.html
@@ -1,15 +1,15 @@
ArrayAccess in leo_ast::access - Rust Struct leo_ast::access::ArrayAccess
source · pub struct ArrayAccess {
pub array: Box<Expression>,
pub index: Box<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array access expression, e.g., foo[index]
.
Fields§
§array: Box<Expression>
An expression evaluating to some array type, e.g., [false, true]
.
§index: Box<Expression>
The index to access in the array expression. E.g., 0
for [false, true]
would yield false
.
-§span: Span
The span for the entire expression foo[index]
.
+§span: Span
The span for the entire expression foo[index]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayAccess
source§fn clone(&self) -> ArrayAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayAccess
source§impl<'de> Deserialize<'de> for ArrayAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayAccess
source§impl Node for ArrayAccess
source§impl PartialEq for ArrayAccess
source§impl Display for ArrayAccess
source§impl Node for ArrayAccess
source§impl PartialEq for ArrayAccess
source§fn eq(&self, other: &ArrayAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayAccess
source§impl Eq for ArrayAccess
source§impl StructuralPartialEq for ArrayAccess
Auto Trait Implementations§
§impl Freeze for ArrayAccess
§impl RefUnwindSafe for ArrayAccess
§impl Send for ArrayAccess
§impl Sync for ArrayAccess
§impl Unpin for ArrayAccess
§impl UnwindSafe for ArrayAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.AssociatedConstant.html b/leo_ast/access/struct.AssociatedConstant.html
index 0fa205198d..58a61233ab 100644
--- a/leo_ast/access/struct.AssociatedConstant.html
+++ b/leo_ast/access/struct.AssociatedConstant.html
@@ -1,15 +1,15 @@
AssociatedConstant in leo_ast::access - Rust Struct leo_ast::access::AssociatedConstant
source · pub struct AssociatedConstant {
pub ty: Type,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An access expression to an struct constant., e.g. u8::MAX
.
Fields§
§ty: Type
The inner struct type.
§name: Identifier
The struct constant that is being accessed.
-§span: Span
The span for the entire expression Foo::bar()
.
+§span: Span
The span for the entire expression Foo::bar()
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for AssociatedConstant
source§fn clone(&self) -> AssociatedConstant
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AssociatedConstant
source§impl<'de> Deserialize<'de> for AssociatedConstant
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AssociatedConstant
source§impl Node for AssociatedConstant
source§impl PartialEq for AssociatedConstant
source§impl Display for AssociatedConstant
source§impl Node for AssociatedConstant
source§impl PartialEq for AssociatedConstant
source§fn eq(&self, other: &AssociatedConstant) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AssociatedConstant
source§impl Eq for AssociatedConstant
source§impl StructuralPartialEq for AssociatedConstant
Auto Trait Implementations§
§impl Freeze for AssociatedConstant
§impl RefUnwindSafe for AssociatedConstant
§impl Send for AssociatedConstant
§impl Sync for AssociatedConstant
§impl Unpin for AssociatedConstant
§impl UnwindSafe for AssociatedConstant
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.AssociatedFunction.html b/leo_ast/access/struct.AssociatedFunction.html
index ad16e78964..a56ee09ecc 100644
--- a/leo_ast/access/struct.AssociatedFunction.html
+++ b/leo_ast/access/struct.AssociatedFunction.html
@@ -2,16 +2,16 @@
pub variant: Identifier,
pub name: Identifier,
pub arguments: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
An access expression to an associated function in a struct, e.g.Pedersen64::hash()
.
Fields§
§variant: Identifier
The inner struct variant.
§name: Identifier
The static struct member function that is being accessed.
§arguments: Vec<Expression>
The arguments passed to the function name
.
-§span: Span
The span for the entire expression Foo::bar()
.
+§span: Span
The span for the entire expression Foo::bar()
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for AssociatedFunction
source§fn clone(&self) -> AssociatedFunction
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AssociatedFunction
source§impl<'de> Deserialize<'de> for AssociatedFunction
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
source§impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
source§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
source§impl Eq for AssociatedFunction
source§impl StructuralPartialEq for AssociatedFunction
Auto Trait Implementations§
§impl Freeze for AssociatedFunction
§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> Any for Twhere
diff --git a/leo_ast/access/struct.MemberAccess.html b/leo_ast/access/struct.MemberAccess.html
index fe898d71c0..dfe48d1de2 100644
--- a/leo_ast/access/struct.MemberAccess.html
+++ b/leo_ast/access/struct.MemberAccess.html
@@ -1,15 +1,15 @@
MemberAccess in leo_ast::access - Rust Struct leo_ast::access::MemberAccess
source · pub struct MemberAccess {
pub inner: Box<Expression>,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct member access expression inner.name
to some structure with named members.
Fields§
§inner: Box<Expression>
The inner struct that is being accessed.
§name: Identifier
The name of the struct member to access.
-§span: Span
The span covering all of inner.name
.
+§span: Span
The span covering all of inner.name
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for MemberAccess
source§fn clone(&self) -> MemberAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemberAccess
source§impl<'de> Deserialize<'de> for MemberAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§fn eq(&self, other: &MemberAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MemberAccess
source§impl Eq for MemberAccess
source§impl StructuralPartialEq for MemberAccess
Auto Trait Implementations§
§impl Freeze for MemberAccess
§impl RefUnwindSafe for MemberAccess
§impl Send for MemberAccess
§impl Sync for MemberAccess
§impl Unpin for MemberAccess
§impl UnwindSafe for MemberAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.TupleAccess.html b/leo_ast/access/struct.TupleAccess.html
index cbffd52236..7dfaa88152 100644
--- a/leo_ast/access/struct.TupleAccess.html
+++ b/leo_ast/access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access - Rust Struct leo_ast::access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/tuple_access/struct.TupleAccess.html b/leo_ast/access/tuple_access/struct.TupleAccess.html
index 987ba8e475..e3d9797579 100644
--- a/leo_ast/access/tuple_access/struct.TupleAccess.html
+++ b/leo_ast/access/tuple_access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access::tuple_access - Rust Struct leo_ast::access::tuple_access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/common/identifier/struct.Identifier.html b/leo_ast/common/identifier/struct.Identifier.html
index ff891a31dd..98f9bce091 100644
--- a/leo_ast/common/identifier/struct.Identifier.html
+++ b/leo_ast/common/identifier/struct.Identifier.html
@@ -1,21 +1,21 @@
Identifier in leo_ast::common::identifier - Rust Struct leo_ast::common::identifier::Identifier
source · pub struct Identifier {
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An identifier in a program.
Attention - When adding or removing fields from this struct,
please remember to update its Serialize and Deserialize implementation
to reflect the new struct instantiation.
-Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
-§span: Span
A span locating where the identifier occurred in the source.
+Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
+§span: Span
A span locating where the identifier occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl Identifier
sourcepub fn new(name: Symbol, id: NodeID) -> Self
Constructs a new identifier with name
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.source§impl Hash for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
diff --git a/leo_ast/common/imported_modules/fn.deserialize.html b/leo_ast/common/imported_modules/fn.deserialize.html
index 9fb6d7b4aa..65f29f75d9 100644
--- a/leo_ast/common/imported_modules/fn.deserialize.html
+++ b/leo_ast/common/imported_modules/fn.deserialize.html
@@ -1,3 +1,3 @@
deserialize in leo_ast::common::imported_modules - Rust Function leo_ast::common::imported_modules::deserialize
source · pub fn deserialize<'de, D: Deserializer<'de>>(
deserializer: D,
-) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
+) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
diff --git a/leo_ast/common/imported_modules/fn.serialize.html b/leo_ast/common/imported_modules/fn.serialize.html
index 2fa175237f..21cc4f002b 100644
--- a/leo_ast/common/imported_modules/fn.serialize.html
+++ b/leo_ast/common/imported_modules/fn.serialize.html
@@ -1,4 +1,4 @@
serialize in leo_ast::common::imported_modules - Rust
\ No newline at end of file
diff --git a/leo_ast/common/location/struct.Location.html b/leo_ast/common/location/struct.Location.html
index 2cfac147e7..543aca84f6 100644
--- a/leo_ast/common/location/struct.Location.html
+++ b/leo_ast/common/location/struct.Location.html
@@ -1,12 +1,12 @@
Location in leo_ast::common::location - Rust pub struct Location {
- pub program: Option<Symbol>,
- pub name: Symbol,
-}
Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
+ pub program: Option<Symbol>,
+ pub name: Symbol,
+}Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<&CompositeType> for Location
source§fn from(composite: &CompositeType) -> Location
Converts to this type from the input type.source§impl PartialEq for Location
source§impl Eq for Location
source§impl StructuralPartialEq for Location
Auto Trait Implementations§
§impl Freeze for Location
§impl RefUnwindSafe for Location
§impl Send for Location
§impl Sync for Location
§impl Unpin for Location
§impl UnwindSafe for Location
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/common/node/trait.Node.html b/leo_ast/common/node/trait.Node.html
index 2af510d1d8..27e7284f7e 100644
--- a/leo_ast/common/node/trait.Node.html
+++ b/leo_ast/common/node/trait.Node.html
@@ -1,12 +1,12 @@
Node in leo_ast::common::node - Rust pub trait Node: Debug + Display + Clone + PartialEq + Eq + Serialize + DeserializeOwned {
// Required methods
- fn span(&self) -> Span;
- fn set_span(&mut self, span: Span);
+ fn span(&self) -> Span;
+ fn set_span(&mut self, span: Span);
fn id(&self) -> NodeID;
fn set_id(&mut self, id: NodeID);
}
Expand description
A node in the AST.
-Required Methods§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl Node for AccessExpression
source§impl Node for Expression
source§impl Node for Literal
source§impl Node for Statement
source§impl Node for ArrayAccess
source§impl Node for AssociatedConstant
source§impl Node for AssociatedFunction
source§impl Node for MemberAccess
source§impl Node for TupleAccess
source§impl Node for ArrayExpression
source§impl Node for BinaryExpression
source§impl Node for CallExpression
source§impl Node for CastExpression
source§impl Node for ErrExpression
source§impl Node for LocatorExpression
source§impl Node for StructExpression
source§impl Node for StructVariableInitializer
source§impl Node for TernaryExpression
source§impl Node for TupleExpression
source§impl Node for UnaryExpression
source§impl Node for UnitExpression
source§impl Node for Annotation
source§impl Node for Input
source§impl Node for Output
source§impl Node for Function
source§impl Node for Mapping
source§impl Node for AssertStatement
source§impl Node for AssignStatement
source§impl Node for Block
source§impl Node for ConditionalStatement
source§impl Node for ConsoleStatement
source§impl Node for ConstDeclaration
source§impl Node for DefinitionStatement
source§impl Node for ExpressionStatement
source§impl Node for IterationStatement
source§impl Node for ReturnStatement
source§impl Node for Member
source§impl Node for Composite
source§impl Node for FunctionStub
source§impl Node for Identifier
\ No newline at end of file
diff --git a/leo_ast/expressions/access/enum.AccessExpression.html b/leo_ast/expressions/access/enum.AccessExpression.html
index 82da863240..d4b7409cd7 100644
--- a/leo_ast/expressions/access/enum.AccessExpression.html
+++ b/leo_ast/expressions/access/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/array/struct.ArrayExpression.html b/leo_ast/expressions/array/struct.ArrayExpression.html
index 942e247033..9417f26ecf 100644
--- a/leo_ast/expressions/array/struct.ArrayExpression.html
+++ b/leo_ast/expressions/array/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions::array - Rust Struct leo_ast::expressions::array::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/binary/enum.BinaryOperation.html b/leo_ast/expressions/binary/enum.BinaryOperation.html
index ad20b0114b..b62052b910 100644
--- a/leo_ast/expressions/binary/enum.BinaryOperation.html
+++ b/leo_ast/expressions/binary/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/binary/struct.BinaryExpression.html b/leo_ast/expressions/binary/struct.BinaryExpression.html
index e016cf94e5..9f705dd3d0 100644
--- a/leo_ast/expressions/binary/struct.BinaryExpression.html
+++ b/leo_ast/expressions/binary/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/call/struct.CallExpression.html b/leo_ast/expressions/call/struct.CallExpression.html
index 7f2b455757..41f0063520 100644
--- a/leo_ast/expressions/call/struct.CallExpression.html
+++ b/leo_ast/expressions/call/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions::call - Rust Struct leo_ast::expressions::call::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html
index 59684ab601..af6a90da32 100644
--- a/leo_ast/expressions/cast/struct.CastExpression.html
+++ b/leo_ast/expressions/cast/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions::cast - Rust Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
§Unary(UnaryExpression)
An unary expression.
§Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
source§fn clone(&self) -> Expression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
source§impl Eq for Expression
source§impl StructuralPartialEq for Expression
Auto Trait Implementations§
§impl Freeze for Expression
§impl RefUnwindSafe for Expression
§impl Send for Expression
§impl Sync for Expression
§impl Unpin for Expression
§impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
impl<T> Any for Twhere
diff --git a/leo_ast/access/member_access/struct.MemberAccess.html b/leo_ast/access/member_access/struct.MemberAccess.html
index cf1239ba5c..a1659ffe4e 100644
--- a/leo_ast/access/member_access/struct.MemberAccess.html
+++ b/leo_ast/access/member_access/struct.MemberAccess.html
@@ -1,15 +1,15 @@
MemberAccess in leo_ast::access::member_access - Rust Struct leo_ast::access::member_access::MemberAccess
source · pub struct MemberAccess {
pub inner: Box<Expression>,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct member access expression inner.name
to some structure with named members.
Fields§
§inner: Box<Expression>
The inner struct that is being accessed.
§name: Identifier
The name of the struct member to access.
-§span: Span
The span covering all of inner.name
.
+§span: Span
The span covering all of inner.name
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for MemberAccess
source§fn clone(&self) -> MemberAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemberAccess
source§impl<'de> Deserialize<'de> for MemberAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§fn eq(&self, other: &MemberAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MemberAccess
source§impl Eq for MemberAccess
source§impl StructuralPartialEq for MemberAccess
Auto Trait Implementations§
§impl Freeze for MemberAccess
§impl RefUnwindSafe for MemberAccess
§impl Send for MemberAccess
§impl Sync for MemberAccess
§impl Unpin for MemberAccess
§impl UnwindSafe for MemberAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.ArrayAccess.html b/leo_ast/access/struct.ArrayAccess.html
index 146ae7d04d..598746ab02 100644
--- a/leo_ast/access/struct.ArrayAccess.html
+++ b/leo_ast/access/struct.ArrayAccess.html
@@ -1,15 +1,15 @@
ArrayAccess in leo_ast::access - Rust Struct leo_ast::access::ArrayAccess
source · pub struct ArrayAccess {
pub array: Box<Expression>,
pub index: Box<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array access expression, e.g., foo[index]
.
Fields§
§array: Box<Expression>
An expression evaluating to some array type, e.g., [false, true]
.
§index: Box<Expression>
The index to access in the array expression. E.g., 0
for [false, true]
would yield false
.
-§span: Span
The span for the entire expression foo[index]
.
+§span: Span
The span for the entire expression foo[index]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayAccess
source§fn clone(&self) -> ArrayAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayAccess
source§impl<'de> Deserialize<'de> for ArrayAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayAccess
source§impl Node for ArrayAccess
source§impl PartialEq for ArrayAccess
source§impl Display for ArrayAccess
source§impl Node for ArrayAccess
source§impl PartialEq for ArrayAccess
source§fn eq(&self, other: &ArrayAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayAccess
source§impl Eq for ArrayAccess
source§impl StructuralPartialEq for ArrayAccess
Auto Trait Implementations§
§impl Freeze for ArrayAccess
§impl RefUnwindSafe for ArrayAccess
§impl Send for ArrayAccess
§impl Sync for ArrayAccess
§impl Unpin for ArrayAccess
§impl UnwindSafe for ArrayAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.AssociatedConstant.html b/leo_ast/access/struct.AssociatedConstant.html
index 0fa205198d..58a61233ab 100644
--- a/leo_ast/access/struct.AssociatedConstant.html
+++ b/leo_ast/access/struct.AssociatedConstant.html
@@ -1,15 +1,15 @@
AssociatedConstant in leo_ast::access - Rust Struct leo_ast::access::AssociatedConstant
source · pub struct AssociatedConstant {
pub ty: Type,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An access expression to an struct constant., e.g. u8::MAX
.
Fields§
§ty: Type
The inner struct type.
§name: Identifier
The struct constant that is being accessed.
-§span: Span
The span for the entire expression Foo::bar()
.
+§span: Span
The span for the entire expression Foo::bar()
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for AssociatedConstant
source§fn clone(&self) -> AssociatedConstant
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AssociatedConstant
source§impl<'de> Deserialize<'de> for AssociatedConstant
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AssociatedConstant
source§impl Node for AssociatedConstant
source§impl PartialEq for AssociatedConstant
source§impl Display for AssociatedConstant
source§impl Node for AssociatedConstant
source§impl PartialEq for AssociatedConstant
source§fn eq(&self, other: &AssociatedConstant) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AssociatedConstant
source§impl Eq for AssociatedConstant
source§impl StructuralPartialEq for AssociatedConstant
Auto Trait Implementations§
§impl Freeze for AssociatedConstant
§impl RefUnwindSafe for AssociatedConstant
§impl Send for AssociatedConstant
§impl Sync for AssociatedConstant
§impl Unpin for AssociatedConstant
§impl UnwindSafe for AssociatedConstant
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.AssociatedFunction.html b/leo_ast/access/struct.AssociatedFunction.html
index ad16e78964..a56ee09ecc 100644
--- a/leo_ast/access/struct.AssociatedFunction.html
+++ b/leo_ast/access/struct.AssociatedFunction.html
@@ -2,16 +2,16 @@
pub variant: Identifier,
pub name: Identifier,
pub arguments: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
An access expression to an associated function in a struct, e.g.Pedersen64::hash()
.
Fields§
§variant: Identifier
The inner struct variant.
§name: Identifier
The static struct member function that is being accessed.
§arguments: Vec<Expression>
The arguments passed to the function name
.
-§span: Span
The span for the entire expression Foo::bar()
.
+§span: Span
The span for the entire expression Foo::bar()
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for AssociatedFunction
source§fn clone(&self) -> AssociatedFunction
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AssociatedFunction
source§impl<'de> Deserialize<'de> for AssociatedFunction
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
source§impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
source§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
source§impl Eq for AssociatedFunction
source§impl StructuralPartialEq for AssociatedFunction
Auto Trait Implementations§
§impl Freeze for AssociatedFunction
§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> Any for Twhere
diff --git a/leo_ast/access/struct.MemberAccess.html b/leo_ast/access/struct.MemberAccess.html
index fe898d71c0..dfe48d1de2 100644
--- a/leo_ast/access/struct.MemberAccess.html
+++ b/leo_ast/access/struct.MemberAccess.html
@@ -1,15 +1,15 @@
MemberAccess in leo_ast::access - Rust Struct leo_ast::access::MemberAccess
source · pub struct MemberAccess {
pub inner: Box<Expression>,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct member access expression inner.name
to some structure with named members.
Fields§
§inner: Box<Expression>
The inner struct that is being accessed.
§name: Identifier
The name of the struct member to access.
-§span: Span
The span covering all of inner.name
.
+§span: Span
The span covering all of inner.name
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for MemberAccess
source§fn clone(&self) -> MemberAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemberAccess
source§impl<'de> Deserialize<'de> for MemberAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§fn eq(&self, other: &MemberAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MemberAccess
source§impl Eq for MemberAccess
source§impl StructuralPartialEq for MemberAccess
Auto Trait Implementations§
§impl Freeze for MemberAccess
§impl RefUnwindSafe for MemberAccess
§impl Send for MemberAccess
§impl Sync for MemberAccess
§impl Unpin for MemberAccess
§impl UnwindSafe for MemberAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.TupleAccess.html b/leo_ast/access/struct.TupleAccess.html
index cbffd52236..7dfaa88152 100644
--- a/leo_ast/access/struct.TupleAccess.html
+++ b/leo_ast/access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access - Rust Struct leo_ast::access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/tuple_access/struct.TupleAccess.html b/leo_ast/access/tuple_access/struct.TupleAccess.html
index 987ba8e475..e3d9797579 100644
--- a/leo_ast/access/tuple_access/struct.TupleAccess.html
+++ b/leo_ast/access/tuple_access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access::tuple_access - Rust Struct leo_ast::access::tuple_access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/common/identifier/struct.Identifier.html b/leo_ast/common/identifier/struct.Identifier.html
index ff891a31dd..98f9bce091 100644
--- a/leo_ast/common/identifier/struct.Identifier.html
+++ b/leo_ast/common/identifier/struct.Identifier.html
@@ -1,21 +1,21 @@
Identifier in leo_ast::common::identifier - Rust Struct leo_ast::common::identifier::Identifier
source · pub struct Identifier {
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An identifier in a program.
Attention - When adding or removing fields from this struct,
please remember to update its Serialize and Deserialize implementation
to reflect the new struct instantiation.
-Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
-§span: Span
A span locating where the identifier occurred in the source.
+Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
+§span: Span
A span locating where the identifier occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl Identifier
sourcepub fn new(name: Symbol, id: NodeID) -> Self
Constructs a new identifier with name
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.source§impl Hash for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
diff --git a/leo_ast/common/imported_modules/fn.deserialize.html b/leo_ast/common/imported_modules/fn.deserialize.html
index 9fb6d7b4aa..65f29f75d9 100644
--- a/leo_ast/common/imported_modules/fn.deserialize.html
+++ b/leo_ast/common/imported_modules/fn.deserialize.html
@@ -1,3 +1,3 @@
deserialize in leo_ast::common::imported_modules - Rust Function leo_ast::common::imported_modules::deserialize
source · pub fn deserialize<'de, D: Deserializer<'de>>(
deserializer: D,
-) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
+) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
diff --git a/leo_ast/common/imported_modules/fn.serialize.html b/leo_ast/common/imported_modules/fn.serialize.html
index 2fa175237f..21cc4f002b 100644
--- a/leo_ast/common/imported_modules/fn.serialize.html
+++ b/leo_ast/common/imported_modules/fn.serialize.html
@@ -1,4 +1,4 @@
serialize in leo_ast::common::imported_modules - Rust
\ No newline at end of file
diff --git a/leo_ast/common/location/struct.Location.html b/leo_ast/common/location/struct.Location.html
index 2cfac147e7..543aca84f6 100644
--- a/leo_ast/common/location/struct.Location.html
+++ b/leo_ast/common/location/struct.Location.html
@@ -1,12 +1,12 @@
Location in leo_ast::common::location - Rust pub struct Location {
- pub program: Option<Symbol>,
- pub name: Symbol,
-}
Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
+ pub program: Option<Symbol>,
+ pub name: Symbol,
+}Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<&CompositeType> for Location
source§fn from(composite: &CompositeType) -> Location
Converts to this type from the input type.source§impl PartialEq for Location
source§impl Eq for Location
source§impl StructuralPartialEq for Location
Auto Trait Implementations§
§impl Freeze for Location
§impl RefUnwindSafe for Location
§impl Send for Location
§impl Sync for Location
§impl Unpin for Location
§impl UnwindSafe for Location
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/common/node/trait.Node.html b/leo_ast/common/node/trait.Node.html
index 2af510d1d8..27e7284f7e 100644
--- a/leo_ast/common/node/trait.Node.html
+++ b/leo_ast/common/node/trait.Node.html
@@ -1,12 +1,12 @@
Node in leo_ast::common::node - Rust pub trait Node: Debug + Display + Clone + PartialEq + Eq + Serialize + DeserializeOwned {
// Required methods
- fn span(&self) -> Span;
- fn set_span(&mut self, span: Span);
+ fn span(&self) -> Span;
+ fn set_span(&mut self, span: Span);
fn id(&self) -> NodeID;
fn set_id(&mut self, id: NodeID);
}
Expand description
A node in the AST.
-Required Methods§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl Node for AccessExpression
source§impl Node for Expression
source§impl Node for Literal
source§impl Node for Statement
source§impl Node for ArrayAccess
source§impl Node for AssociatedConstant
source§impl Node for AssociatedFunction
source§impl Node for MemberAccess
source§impl Node for TupleAccess
source§impl Node for ArrayExpression
source§impl Node for BinaryExpression
source§impl Node for CallExpression
source§impl Node for CastExpression
source§impl Node for ErrExpression
source§impl Node for LocatorExpression
source§impl Node for StructExpression
source§impl Node for StructVariableInitializer
source§impl Node for TernaryExpression
source§impl Node for TupleExpression
source§impl Node for UnaryExpression
source§impl Node for UnitExpression
source§impl Node for Annotation
source§impl Node for Input
source§impl Node for Output
source§impl Node for Function
source§impl Node for Mapping
source§impl Node for AssertStatement
source§impl Node for AssignStatement
source§impl Node for Block
source§impl Node for ConditionalStatement
source§impl Node for ConsoleStatement
source§impl Node for ConstDeclaration
source§impl Node for DefinitionStatement
source§impl Node for ExpressionStatement
source§impl Node for IterationStatement
source§impl Node for ReturnStatement
source§impl Node for Member
source§impl Node for Composite
source§impl Node for FunctionStub
source§impl Node for Identifier
\ No newline at end of file
diff --git a/leo_ast/expressions/access/enum.AccessExpression.html b/leo_ast/expressions/access/enum.AccessExpression.html
index 82da863240..d4b7409cd7 100644
--- a/leo_ast/expressions/access/enum.AccessExpression.html
+++ b/leo_ast/expressions/access/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/array/struct.ArrayExpression.html b/leo_ast/expressions/array/struct.ArrayExpression.html
index 942e247033..9417f26ecf 100644
--- a/leo_ast/expressions/array/struct.ArrayExpression.html
+++ b/leo_ast/expressions/array/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions::array - Rust Struct leo_ast::expressions::array::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/binary/enum.BinaryOperation.html b/leo_ast/expressions/binary/enum.BinaryOperation.html
index ad20b0114b..b62052b910 100644
--- a/leo_ast/expressions/binary/enum.BinaryOperation.html
+++ b/leo_ast/expressions/binary/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/binary/struct.BinaryExpression.html b/leo_ast/expressions/binary/struct.BinaryExpression.html
index e016cf94e5..9f705dd3d0 100644
--- a/leo_ast/expressions/binary/struct.BinaryExpression.html
+++ b/leo_ast/expressions/binary/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/call/struct.CallExpression.html b/leo_ast/expressions/call/struct.CallExpression.html
index 7f2b455757..41f0063520 100644
--- a/leo_ast/expressions/call/struct.CallExpression.html
+++ b/leo_ast/expressions/call/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions::call - Rust Struct leo_ast::expressions::call::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html
index 59684ab601..af6a90da32 100644
--- a/leo_ast/expressions/cast/struct.CastExpression.html
+++ b/leo_ast/expressions/cast/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions::cast - Rust Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
§Unary(UnaryExpression)
An unary expression.
§Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
source§fn clone(&self) -> Expression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
source§impl Eq for Expression
source§impl StructuralPartialEq for Expression
Auto Trait Implementations§
§impl Freeze for Expression
§impl RefUnwindSafe for Expression
§impl Send for Expression
§impl Sync for Expression
§impl Unpin for Expression
§impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
Struct leo_ast::access::member_access::MemberAccess
source · pub struct MemberAccess {
pub inner: Box<Expression>,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct member access expression inner.name
to some structure with named members.
Fields§
§inner: Box<Expression>
The inner struct that is being accessed.
name: Identifier
The name of the struct member to access.
-span: Span
The span covering all of inner.name
.
span: Span
The span covering all of inner.name
.
id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for MemberAccess
impl Clone for MemberAccess
source§fn clone(&self) -> MemberAccess
fn clone(&self) -> MemberAccess
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MemberAccess
impl Debug for MemberAccess
source§impl<'de> Deserialize<'de> for MemberAccess
impl<'de> Deserialize<'de> for MemberAccess
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>,
source§impl Display for MemberAccess
impl Display for MemberAccess
source§impl Node for MemberAccess
impl Node for MemberAccess
source§impl PartialEq for MemberAccess
impl PartialEq for MemberAccess
source§impl Display for MemberAccess
impl Display for MemberAccess
source§impl Node for MemberAccess
impl Node for MemberAccess
source§impl PartialEq for MemberAccess
impl PartialEq for MemberAccess
source§fn eq(&self, other: &MemberAccess) -> bool
fn eq(&self, other: &MemberAccess) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MemberAccess
impl Serialize for MemberAccess
impl Eq for MemberAccess
impl StructuralPartialEq for MemberAccess
Auto Trait Implementations§
impl Freeze for MemberAccess
impl RefUnwindSafe for MemberAccess
impl Send for MemberAccess
impl Sync for MemberAccess
impl Unpin for MemberAccess
impl UnwindSafe for MemberAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.ArrayAccess.html b/leo_ast/access/struct.ArrayAccess.html
index 146ae7d04d..598746ab02 100644
--- a/leo_ast/access/struct.ArrayAccess.html
+++ b/leo_ast/access/struct.ArrayAccess.html
@@ -1,15 +1,15 @@
ArrayAccess in leo_ast::access - Rust Struct leo_ast::access::ArrayAccess
source · pub struct ArrayAccess {
pub array: Box<Expression>,
pub index: Box<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array access expression, e.g., foo[index]
.
Fields§
§array: Box<Expression>
An expression evaluating to some array type, e.g., [false, true]
.
§index: Box<Expression>
The index to access in the array expression. E.g., 0
for [false, true]
would yield false
.
-§span: Span
The span for the entire expression foo[index]
.
+§span: Span
The span for the entire expression foo[index]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayAccess
source§fn clone(&self) -> ArrayAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayAccess
source§impl<'de> Deserialize<'de> for ArrayAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayAccess
source§impl Node for ArrayAccess
source§impl PartialEq for ArrayAccess
source§impl Display for ArrayAccess
source§impl Node for ArrayAccess
source§impl PartialEq for ArrayAccess
source§fn eq(&self, other: &ArrayAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayAccess
source§impl Eq for ArrayAccess
source§impl StructuralPartialEq for ArrayAccess
Auto Trait Implementations§
§impl Freeze for ArrayAccess
§impl RefUnwindSafe for ArrayAccess
§impl Send for ArrayAccess
§impl Sync for ArrayAccess
§impl Unpin for ArrayAccess
§impl UnwindSafe for ArrayAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.AssociatedConstant.html b/leo_ast/access/struct.AssociatedConstant.html
index 0fa205198d..58a61233ab 100644
--- a/leo_ast/access/struct.AssociatedConstant.html
+++ b/leo_ast/access/struct.AssociatedConstant.html
@@ -1,15 +1,15 @@
AssociatedConstant in leo_ast::access - Rust Struct leo_ast::access::AssociatedConstant
source · pub struct AssociatedConstant {
pub ty: Type,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An access expression to an struct constant., e.g. u8::MAX
.
Fields§
§ty: Type
The inner struct type.
§name: Identifier
The struct constant that is being accessed.
-§span: Span
The span for the entire expression Foo::bar()
.
+§span: Span
The span for the entire expression Foo::bar()
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for AssociatedConstant
source§fn clone(&self) -> AssociatedConstant
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AssociatedConstant
source§impl<'de> Deserialize<'de> for AssociatedConstant
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AssociatedConstant
source§impl Node for AssociatedConstant
source§impl PartialEq for AssociatedConstant
source§impl Display for AssociatedConstant
source§impl Node for AssociatedConstant
source§impl PartialEq for AssociatedConstant
source§fn eq(&self, other: &AssociatedConstant) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AssociatedConstant
source§impl Eq for AssociatedConstant
source§impl StructuralPartialEq for AssociatedConstant
Auto Trait Implementations§
§impl Freeze for AssociatedConstant
§impl RefUnwindSafe for AssociatedConstant
§impl Send for AssociatedConstant
§impl Sync for AssociatedConstant
§impl Unpin for AssociatedConstant
§impl UnwindSafe for AssociatedConstant
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.AssociatedFunction.html b/leo_ast/access/struct.AssociatedFunction.html
index ad16e78964..a56ee09ecc 100644
--- a/leo_ast/access/struct.AssociatedFunction.html
+++ b/leo_ast/access/struct.AssociatedFunction.html
@@ -2,16 +2,16 @@
pub variant: Identifier,
pub name: Identifier,
pub arguments: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
An access expression to an associated function in a struct, e.g.Pedersen64::hash()
.
Fields§
§variant: Identifier
The inner struct variant.
§name: Identifier
The static struct member function that is being accessed.
§arguments: Vec<Expression>
The arguments passed to the function name
.
-§span: Span
The span for the entire expression Foo::bar()
.
+§span: Span
The span for the entire expression Foo::bar()
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for AssociatedFunction
source§fn clone(&self) -> AssociatedFunction
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AssociatedFunction
source§impl<'de> Deserialize<'de> for AssociatedFunction
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
source§impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
source§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
source§impl Eq for AssociatedFunction
source§impl StructuralPartialEq for AssociatedFunction
Auto Trait Implementations§
§impl Freeze for AssociatedFunction
§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> Any for Twhere
diff --git a/leo_ast/access/struct.MemberAccess.html b/leo_ast/access/struct.MemberAccess.html
index fe898d71c0..dfe48d1de2 100644
--- a/leo_ast/access/struct.MemberAccess.html
+++ b/leo_ast/access/struct.MemberAccess.html
@@ -1,15 +1,15 @@
MemberAccess in leo_ast::access - Rust Struct leo_ast::access::MemberAccess
source · pub struct MemberAccess {
pub inner: Box<Expression>,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct member access expression inner.name
to some structure with named members.
Fields§
§inner: Box<Expression>
The inner struct that is being accessed.
§name: Identifier
The name of the struct member to access.
-§span: Span
The span covering all of inner.name
.
+§span: Span
The span covering all of inner.name
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for MemberAccess
source§fn clone(&self) -> MemberAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemberAccess
source§impl<'de> Deserialize<'de> for MemberAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§fn eq(&self, other: &MemberAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MemberAccess
source§impl Eq for MemberAccess
source§impl StructuralPartialEq for MemberAccess
Auto Trait Implementations§
§impl Freeze for MemberAccess
§impl RefUnwindSafe for MemberAccess
§impl Send for MemberAccess
§impl Sync for MemberAccess
§impl Unpin for MemberAccess
§impl UnwindSafe for MemberAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.TupleAccess.html b/leo_ast/access/struct.TupleAccess.html
index cbffd52236..7dfaa88152 100644
--- a/leo_ast/access/struct.TupleAccess.html
+++ b/leo_ast/access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access - Rust Struct leo_ast::access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/tuple_access/struct.TupleAccess.html b/leo_ast/access/tuple_access/struct.TupleAccess.html
index 987ba8e475..e3d9797579 100644
--- a/leo_ast/access/tuple_access/struct.TupleAccess.html
+++ b/leo_ast/access/tuple_access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access::tuple_access - Rust Struct leo_ast::access::tuple_access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/common/identifier/struct.Identifier.html b/leo_ast/common/identifier/struct.Identifier.html
index ff891a31dd..98f9bce091 100644
--- a/leo_ast/common/identifier/struct.Identifier.html
+++ b/leo_ast/common/identifier/struct.Identifier.html
@@ -1,21 +1,21 @@
Identifier in leo_ast::common::identifier - Rust Struct leo_ast::common::identifier::Identifier
source · pub struct Identifier {
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An identifier in a program.
Attention - When adding or removing fields from this struct,
please remember to update its Serialize and Deserialize implementation
to reflect the new struct instantiation.
-Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
-§span: Span
A span locating where the identifier occurred in the source.
+Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
+§span: Span
A span locating where the identifier occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl Identifier
sourcepub fn new(name: Symbol, id: NodeID) -> Self
Constructs a new identifier with name
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.source§impl Hash for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
diff --git a/leo_ast/common/imported_modules/fn.deserialize.html b/leo_ast/common/imported_modules/fn.deserialize.html
index 9fb6d7b4aa..65f29f75d9 100644
--- a/leo_ast/common/imported_modules/fn.deserialize.html
+++ b/leo_ast/common/imported_modules/fn.deserialize.html
@@ -1,3 +1,3 @@
deserialize in leo_ast::common::imported_modules - Rust Function leo_ast::common::imported_modules::deserialize
source · pub fn deserialize<'de, D: Deserializer<'de>>(
deserializer: D,
-) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
+) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
diff --git a/leo_ast/common/imported_modules/fn.serialize.html b/leo_ast/common/imported_modules/fn.serialize.html
index 2fa175237f..21cc4f002b 100644
--- a/leo_ast/common/imported_modules/fn.serialize.html
+++ b/leo_ast/common/imported_modules/fn.serialize.html
@@ -1,4 +1,4 @@
serialize in leo_ast::common::imported_modules - Rust
\ No newline at end of file
diff --git a/leo_ast/common/location/struct.Location.html b/leo_ast/common/location/struct.Location.html
index 2cfac147e7..543aca84f6 100644
--- a/leo_ast/common/location/struct.Location.html
+++ b/leo_ast/common/location/struct.Location.html
@@ -1,12 +1,12 @@
Location in leo_ast::common::location - Rust pub struct Location {
- pub program: Option<Symbol>,
- pub name: Symbol,
-}
Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
+ pub program: Option<Symbol>,
+ pub name: Symbol,
+}Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<&CompositeType> for Location
source§fn from(composite: &CompositeType) -> Location
Converts to this type from the input type.source§impl PartialEq for Location
source§impl Eq for Location
source§impl StructuralPartialEq for Location
Auto Trait Implementations§
§impl Freeze for Location
§impl RefUnwindSafe for Location
§impl Send for Location
§impl Sync for Location
§impl Unpin for Location
§impl UnwindSafe for Location
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/common/node/trait.Node.html b/leo_ast/common/node/trait.Node.html
index 2af510d1d8..27e7284f7e 100644
--- a/leo_ast/common/node/trait.Node.html
+++ b/leo_ast/common/node/trait.Node.html
@@ -1,12 +1,12 @@
Node in leo_ast::common::node - Rust pub trait Node: Debug + Display + Clone + PartialEq + Eq + Serialize + DeserializeOwned {
// Required methods
- fn span(&self) -> Span;
- fn set_span(&mut self, span: Span);
+ fn span(&self) -> Span;
+ fn set_span(&mut self, span: Span);
fn id(&self) -> NodeID;
fn set_id(&mut self, id: NodeID);
}
Expand description
A node in the AST.
-Required Methods§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl Node for AccessExpression
source§impl Node for Expression
source§impl Node for Literal
source§impl Node for Statement
source§impl Node for ArrayAccess
source§impl Node for AssociatedConstant
source§impl Node for AssociatedFunction
source§impl Node for MemberAccess
source§impl Node for TupleAccess
source§impl Node for ArrayExpression
source§impl Node for BinaryExpression
source§impl Node for CallExpression
source§impl Node for CastExpression
source§impl Node for ErrExpression
source§impl Node for LocatorExpression
source§impl Node for StructExpression
source§impl Node for StructVariableInitializer
source§impl Node for TernaryExpression
source§impl Node for TupleExpression
source§impl Node for UnaryExpression
source§impl Node for UnitExpression
source§impl Node for Annotation
source§impl Node for Input
source§impl Node for Output
source§impl Node for Function
source§impl Node for Mapping
source§impl Node for AssertStatement
source§impl Node for AssignStatement
source§impl Node for Block
source§impl Node for ConditionalStatement
source§impl Node for ConsoleStatement
source§impl Node for ConstDeclaration
source§impl Node for DefinitionStatement
source§impl Node for ExpressionStatement
source§impl Node for IterationStatement
source§impl Node for ReturnStatement
source§impl Node for Member
source§impl Node for Composite
source§impl Node for FunctionStub
source§impl Node for Identifier
\ No newline at end of file
diff --git a/leo_ast/expressions/access/enum.AccessExpression.html b/leo_ast/expressions/access/enum.AccessExpression.html
index 82da863240..d4b7409cd7 100644
--- a/leo_ast/expressions/access/enum.AccessExpression.html
+++ b/leo_ast/expressions/access/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/array/struct.ArrayExpression.html b/leo_ast/expressions/array/struct.ArrayExpression.html
index 942e247033..9417f26ecf 100644
--- a/leo_ast/expressions/array/struct.ArrayExpression.html
+++ b/leo_ast/expressions/array/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions::array - Rust Struct leo_ast::expressions::array::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/binary/enum.BinaryOperation.html b/leo_ast/expressions/binary/enum.BinaryOperation.html
index ad20b0114b..b62052b910 100644
--- a/leo_ast/expressions/binary/enum.BinaryOperation.html
+++ b/leo_ast/expressions/binary/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/binary/struct.BinaryExpression.html b/leo_ast/expressions/binary/struct.BinaryExpression.html
index e016cf94e5..9f705dd3d0 100644
--- a/leo_ast/expressions/binary/struct.BinaryExpression.html
+++ b/leo_ast/expressions/binary/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/call/struct.CallExpression.html b/leo_ast/expressions/call/struct.CallExpression.html
index 7f2b455757..41f0063520 100644
--- a/leo_ast/expressions/call/struct.CallExpression.html
+++ b/leo_ast/expressions/call/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions::call - Rust Struct leo_ast::expressions::call::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html
index 59684ab601..af6a90da32 100644
--- a/leo_ast/expressions/cast/struct.CastExpression.html
+++ b/leo_ast/expressions/cast/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions::cast - Rust Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
§Unary(UnaryExpression)
An unary expression.
§Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
source§fn clone(&self) -> Expression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
source§impl Eq for Expression
source§impl StructuralPartialEq for Expression
Auto Trait Implementations§
§impl Freeze for Expression
§impl RefUnwindSafe for Expression
§impl Send for Expression
§impl Sync for Expression
§impl Unpin for Expression
§impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.ArrayAccess.html b/leo_ast/access/struct.ArrayAccess.html
index 146ae7d04d..598746ab02 100644
--- a/leo_ast/access/struct.ArrayAccess.html
+++ b/leo_ast/access/struct.ArrayAccess.html
@@ -1,15 +1,15 @@
ArrayAccess in leo_ast::access - Rust Struct leo_ast::access::ArrayAccess
source · pub struct ArrayAccess {
pub array: Box<Expression>,
pub index: Box<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array access expression, e.g., foo[index]
.
Fields§
§array: Box<Expression>
An expression evaluating to some array type, e.g., [false, true]
.
§index: Box<Expression>
The index to access in the array expression. E.g., 0
for [false, true]
would yield false
.
-§span: Span
The span for the entire expression foo[index]
.
+§span: Span
The span for the entire expression foo[index]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayAccess
source§fn clone(&self) -> ArrayAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayAccess
source§impl<'de> Deserialize<'de> for ArrayAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayAccess
source§impl Node for ArrayAccess
source§impl PartialEq for ArrayAccess
source§impl Display for ArrayAccess
source§impl Node for ArrayAccess
source§impl PartialEq for ArrayAccess
source§fn eq(&self, other: &ArrayAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayAccess
source§impl Eq for ArrayAccess
source§impl StructuralPartialEq for ArrayAccess
Auto Trait Implementations§
§impl Freeze for ArrayAccess
§impl RefUnwindSafe for ArrayAccess
§impl Send for ArrayAccess
§impl Sync for ArrayAccess
§impl Unpin for ArrayAccess
§impl UnwindSafe for ArrayAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.AssociatedConstant.html b/leo_ast/access/struct.AssociatedConstant.html
index 0fa205198d..58a61233ab 100644
--- a/leo_ast/access/struct.AssociatedConstant.html
+++ b/leo_ast/access/struct.AssociatedConstant.html
@@ -1,15 +1,15 @@
AssociatedConstant in leo_ast::access - Rust Struct leo_ast::access::AssociatedConstant
source · pub struct AssociatedConstant {
pub ty: Type,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An access expression to an struct constant., e.g. u8::MAX
.
Fields§
§ty: Type
The inner struct type.
§name: Identifier
The struct constant that is being accessed.
-§span: Span
The span for the entire expression Foo::bar()
.
+§span: Span
The span for the entire expression Foo::bar()
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for AssociatedConstant
source§fn clone(&self) -> AssociatedConstant
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AssociatedConstant
source§impl<'de> Deserialize<'de> for AssociatedConstant
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AssociatedConstant
source§impl Node for AssociatedConstant
source§impl PartialEq for AssociatedConstant
source§impl Display for AssociatedConstant
source§impl Node for AssociatedConstant
source§impl PartialEq for AssociatedConstant
source§fn eq(&self, other: &AssociatedConstant) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AssociatedConstant
source§impl Eq for AssociatedConstant
source§impl StructuralPartialEq for AssociatedConstant
Auto Trait Implementations§
§impl Freeze for AssociatedConstant
§impl RefUnwindSafe for AssociatedConstant
§impl Send for AssociatedConstant
§impl Sync for AssociatedConstant
§impl Unpin for AssociatedConstant
§impl UnwindSafe for AssociatedConstant
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.AssociatedFunction.html b/leo_ast/access/struct.AssociatedFunction.html
index ad16e78964..a56ee09ecc 100644
--- a/leo_ast/access/struct.AssociatedFunction.html
+++ b/leo_ast/access/struct.AssociatedFunction.html
@@ -2,16 +2,16 @@
pub variant: Identifier,
pub name: Identifier,
pub arguments: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
An access expression to an associated function in a struct, e.g.Pedersen64::hash()
.
Fields§
§variant: Identifier
The inner struct variant.
§name: Identifier
The static struct member function that is being accessed.
§arguments: Vec<Expression>
The arguments passed to the function name
.
-§span: Span
The span for the entire expression Foo::bar()
.
+§span: Span
The span for the entire expression Foo::bar()
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for AssociatedFunction
source§fn clone(&self) -> AssociatedFunction
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AssociatedFunction
source§impl<'de> Deserialize<'de> for AssociatedFunction
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
source§impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
source§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
source§impl Eq for AssociatedFunction
source§impl StructuralPartialEq for AssociatedFunction
Auto Trait Implementations§
§impl Freeze for AssociatedFunction
§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> Any for Twhere
diff --git a/leo_ast/access/struct.MemberAccess.html b/leo_ast/access/struct.MemberAccess.html
index fe898d71c0..dfe48d1de2 100644
--- a/leo_ast/access/struct.MemberAccess.html
+++ b/leo_ast/access/struct.MemberAccess.html
@@ -1,15 +1,15 @@
MemberAccess in leo_ast::access - Rust Struct leo_ast::access::MemberAccess
source · pub struct MemberAccess {
pub inner: Box<Expression>,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct member access expression inner.name
to some structure with named members.
Fields§
§inner: Box<Expression>
The inner struct that is being accessed.
§name: Identifier
The name of the struct member to access.
-§span: Span
The span covering all of inner.name
.
+§span: Span
The span covering all of inner.name
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for MemberAccess
source§fn clone(&self) -> MemberAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemberAccess
source§impl<'de> Deserialize<'de> for MemberAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§fn eq(&self, other: &MemberAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MemberAccess
source§impl Eq for MemberAccess
source§impl StructuralPartialEq for MemberAccess
Auto Trait Implementations§
§impl Freeze for MemberAccess
§impl RefUnwindSafe for MemberAccess
§impl Send for MemberAccess
§impl Sync for MemberAccess
§impl Unpin for MemberAccess
§impl UnwindSafe for MemberAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.TupleAccess.html b/leo_ast/access/struct.TupleAccess.html
index cbffd52236..7dfaa88152 100644
--- a/leo_ast/access/struct.TupleAccess.html
+++ b/leo_ast/access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access - Rust Struct leo_ast::access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/tuple_access/struct.TupleAccess.html b/leo_ast/access/tuple_access/struct.TupleAccess.html
index 987ba8e475..e3d9797579 100644
--- a/leo_ast/access/tuple_access/struct.TupleAccess.html
+++ b/leo_ast/access/tuple_access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access::tuple_access - Rust Struct leo_ast::access::tuple_access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/common/identifier/struct.Identifier.html b/leo_ast/common/identifier/struct.Identifier.html
index ff891a31dd..98f9bce091 100644
--- a/leo_ast/common/identifier/struct.Identifier.html
+++ b/leo_ast/common/identifier/struct.Identifier.html
@@ -1,21 +1,21 @@
Identifier in leo_ast::common::identifier - Rust Struct leo_ast::common::identifier::Identifier
source · pub struct Identifier {
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An identifier in a program.
Attention - When adding or removing fields from this struct,
please remember to update its Serialize and Deserialize implementation
to reflect the new struct instantiation.
-Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
-§span: Span
A span locating where the identifier occurred in the source.
+Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
+§span: Span
A span locating where the identifier occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl Identifier
sourcepub fn new(name: Symbol, id: NodeID) -> Self
Constructs a new identifier with name
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.source§impl Hash for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
diff --git a/leo_ast/common/imported_modules/fn.deserialize.html b/leo_ast/common/imported_modules/fn.deserialize.html
index 9fb6d7b4aa..65f29f75d9 100644
--- a/leo_ast/common/imported_modules/fn.deserialize.html
+++ b/leo_ast/common/imported_modules/fn.deserialize.html
@@ -1,3 +1,3 @@
deserialize in leo_ast::common::imported_modules - Rust Function leo_ast::common::imported_modules::deserialize
source · pub fn deserialize<'de, D: Deserializer<'de>>(
deserializer: D,
-) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
+) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
diff --git a/leo_ast/common/imported_modules/fn.serialize.html b/leo_ast/common/imported_modules/fn.serialize.html
index 2fa175237f..21cc4f002b 100644
--- a/leo_ast/common/imported_modules/fn.serialize.html
+++ b/leo_ast/common/imported_modules/fn.serialize.html
@@ -1,4 +1,4 @@
serialize in leo_ast::common::imported_modules - Rust
\ No newline at end of file
diff --git a/leo_ast/common/location/struct.Location.html b/leo_ast/common/location/struct.Location.html
index 2cfac147e7..543aca84f6 100644
--- a/leo_ast/common/location/struct.Location.html
+++ b/leo_ast/common/location/struct.Location.html
@@ -1,12 +1,12 @@
Location in leo_ast::common::location - Rust pub struct Location {
- pub program: Option<Symbol>,
- pub name: Symbol,
-}
Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
+ pub program: Option<Symbol>,
+ pub name: Symbol,
+}Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<&CompositeType> for Location
source§fn from(composite: &CompositeType) -> Location
Converts to this type from the input type.source§impl PartialEq for Location
source§impl Eq for Location
source§impl StructuralPartialEq for Location
Auto Trait Implementations§
§impl Freeze for Location
§impl RefUnwindSafe for Location
§impl Send for Location
§impl Sync for Location
§impl Unpin for Location
§impl UnwindSafe for Location
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/common/node/trait.Node.html b/leo_ast/common/node/trait.Node.html
index 2af510d1d8..27e7284f7e 100644
--- a/leo_ast/common/node/trait.Node.html
+++ b/leo_ast/common/node/trait.Node.html
@@ -1,12 +1,12 @@
Node in leo_ast::common::node - Rust pub trait Node: Debug + Display + Clone + PartialEq + Eq + Serialize + DeserializeOwned {
// Required methods
- fn span(&self) -> Span;
- fn set_span(&mut self, span: Span);
+ fn span(&self) -> Span;
+ fn set_span(&mut self, span: Span);
fn id(&self) -> NodeID;
fn set_id(&mut self, id: NodeID);
}
Expand description
A node in the AST.
-Required Methods§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl Node for AccessExpression
source§impl Node for Expression
source§impl Node for Literal
source§impl Node for Statement
source§impl Node for ArrayAccess
source§impl Node for AssociatedConstant
source§impl Node for AssociatedFunction
source§impl Node for MemberAccess
source§impl Node for TupleAccess
source§impl Node for ArrayExpression
source§impl Node for BinaryExpression
source§impl Node for CallExpression
source§impl Node for CastExpression
source§impl Node for ErrExpression
source§impl Node for LocatorExpression
source§impl Node for StructExpression
source§impl Node for StructVariableInitializer
source§impl Node for TernaryExpression
source§impl Node for TupleExpression
source§impl Node for UnaryExpression
source§impl Node for UnitExpression
source§impl Node for Annotation
source§impl Node for Input
source§impl Node for Output
source§impl Node for Function
source§impl Node for Mapping
source§impl Node for AssertStatement
source§impl Node for AssignStatement
source§impl Node for Block
source§impl Node for ConditionalStatement
source§impl Node for ConsoleStatement
source§impl Node for ConstDeclaration
source§impl Node for DefinitionStatement
source§impl Node for ExpressionStatement
source§impl Node for IterationStatement
source§impl Node for ReturnStatement
source§impl Node for Member
source§impl Node for Composite
source§impl Node for FunctionStub
source§impl Node for Identifier
\ No newline at end of file
diff --git a/leo_ast/expressions/access/enum.AccessExpression.html b/leo_ast/expressions/access/enum.AccessExpression.html
index 82da863240..d4b7409cd7 100644
--- a/leo_ast/expressions/access/enum.AccessExpression.html
+++ b/leo_ast/expressions/access/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/array/struct.ArrayExpression.html b/leo_ast/expressions/array/struct.ArrayExpression.html
index 942e247033..9417f26ecf 100644
--- a/leo_ast/expressions/array/struct.ArrayExpression.html
+++ b/leo_ast/expressions/array/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions::array - Rust Struct leo_ast::expressions::array::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/binary/enum.BinaryOperation.html b/leo_ast/expressions/binary/enum.BinaryOperation.html
index ad20b0114b..b62052b910 100644
--- a/leo_ast/expressions/binary/enum.BinaryOperation.html
+++ b/leo_ast/expressions/binary/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/binary/struct.BinaryExpression.html b/leo_ast/expressions/binary/struct.BinaryExpression.html
index e016cf94e5..9f705dd3d0 100644
--- a/leo_ast/expressions/binary/struct.BinaryExpression.html
+++ b/leo_ast/expressions/binary/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/call/struct.CallExpression.html b/leo_ast/expressions/call/struct.CallExpression.html
index 7f2b455757..41f0063520 100644
--- a/leo_ast/expressions/call/struct.CallExpression.html
+++ b/leo_ast/expressions/call/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions::call - Rust Struct leo_ast::expressions::call::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html
index 59684ab601..af6a90da32 100644
--- a/leo_ast/expressions/cast/struct.CastExpression.html
+++ b/leo_ast/expressions/cast/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions::cast - Rust Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
§Unary(UnaryExpression)
An unary expression.
§Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
source§fn clone(&self) -> Expression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
source§impl Eq for Expression
source§impl StructuralPartialEq for Expression
Auto Trait Implementations§
§impl Freeze for Expression
§impl RefUnwindSafe for Expression
§impl Send for Expression
§impl Sync for Expression
§impl Unpin for Expression
§impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
Struct leo_ast::access::ArrayAccess
source · pub struct ArrayAccess {
pub array: Box<Expression>,
pub index: Box<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array access expression, e.g., foo[index]
.
Fields§
§array: Box<Expression>
An expression evaluating to some array type, e.g., [false, true]
.
index: Box<Expression>
The index to access in the array expression. E.g., 0
for [false, true]
would yield false
.
span: Span
The span for the entire expression foo[index]
.
span: Span
The span for the entire expression foo[index]
.
id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayAccess
impl Clone for ArrayAccess
source§fn clone(&self) -> ArrayAccess
fn clone(&self) -> ArrayAccess
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ArrayAccess
impl Debug for ArrayAccess
source§impl<'de> Deserialize<'de> for ArrayAccess
impl<'de> Deserialize<'de> for ArrayAccess
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>,
source§impl Display for ArrayAccess
impl Display for ArrayAccess
source§impl Node for ArrayAccess
impl Node for ArrayAccess
source§impl PartialEq for ArrayAccess
impl PartialEq for ArrayAccess
source§impl Display for ArrayAccess
impl Display for ArrayAccess
source§impl Node for ArrayAccess
impl Node for ArrayAccess
source§impl PartialEq for ArrayAccess
impl PartialEq for ArrayAccess
source§fn eq(&self, other: &ArrayAccess) -> bool
fn eq(&self, other: &ArrayAccess) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayAccess
impl Serialize for ArrayAccess
impl Eq for ArrayAccess
impl StructuralPartialEq for ArrayAccess
Auto Trait Implementations§
impl Freeze for ArrayAccess
impl RefUnwindSafe for ArrayAccess
impl Send for ArrayAccess
impl Sync for ArrayAccess
impl Unpin for ArrayAccess
impl UnwindSafe for ArrayAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.AssociatedConstant.html b/leo_ast/access/struct.AssociatedConstant.html
index 0fa205198d..58a61233ab 100644
--- a/leo_ast/access/struct.AssociatedConstant.html
+++ b/leo_ast/access/struct.AssociatedConstant.html
@@ -1,15 +1,15 @@
AssociatedConstant in leo_ast::access - Rust Struct leo_ast::access::AssociatedConstant
source · pub struct AssociatedConstant {
pub ty: Type,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An access expression to an struct constant., e.g. u8::MAX
.
Fields§
§ty: Type
The inner struct type.
§name: Identifier
The struct constant that is being accessed.
-§span: Span
The span for the entire expression Foo::bar()
.
+§span: Span
The span for the entire expression Foo::bar()
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for AssociatedConstant
source§fn clone(&self) -> AssociatedConstant
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AssociatedConstant
source§impl<'de> Deserialize<'de> for AssociatedConstant
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AssociatedConstant
source§impl Node for AssociatedConstant
source§impl PartialEq for AssociatedConstant
source§impl Display for AssociatedConstant
source§impl Node for AssociatedConstant
source§impl PartialEq for AssociatedConstant
source§fn eq(&self, other: &AssociatedConstant) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AssociatedConstant
source§impl Eq for AssociatedConstant
source§impl StructuralPartialEq for AssociatedConstant
Auto Trait Implementations§
§impl Freeze for AssociatedConstant
§impl RefUnwindSafe for AssociatedConstant
§impl Send for AssociatedConstant
§impl Sync for AssociatedConstant
§impl Unpin for AssociatedConstant
§impl UnwindSafe for AssociatedConstant
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.AssociatedFunction.html b/leo_ast/access/struct.AssociatedFunction.html
index ad16e78964..a56ee09ecc 100644
--- a/leo_ast/access/struct.AssociatedFunction.html
+++ b/leo_ast/access/struct.AssociatedFunction.html
@@ -2,16 +2,16 @@
pub variant: Identifier,
pub name: Identifier,
pub arguments: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
An access expression to an associated function in a struct, e.g.Pedersen64::hash()
.
Fields§
§variant: Identifier
The inner struct variant.
§name: Identifier
The static struct member function that is being accessed.
§arguments: Vec<Expression>
The arguments passed to the function name
.
-§span: Span
The span for the entire expression Foo::bar()
.
+§span: Span
The span for the entire expression Foo::bar()
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for AssociatedFunction
source§fn clone(&self) -> AssociatedFunction
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AssociatedFunction
source§impl<'de> Deserialize<'de> for AssociatedFunction
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
source§impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
source§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
source§impl Eq for AssociatedFunction
source§impl StructuralPartialEq for AssociatedFunction
Auto Trait Implementations§
§impl Freeze for AssociatedFunction
§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> Any for Twhere
diff --git a/leo_ast/access/struct.MemberAccess.html b/leo_ast/access/struct.MemberAccess.html
index fe898d71c0..dfe48d1de2 100644
--- a/leo_ast/access/struct.MemberAccess.html
+++ b/leo_ast/access/struct.MemberAccess.html
@@ -1,15 +1,15 @@
MemberAccess in leo_ast::access - Rust Struct leo_ast::access::MemberAccess
source · pub struct MemberAccess {
pub inner: Box<Expression>,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct member access expression inner.name
to some structure with named members.
Fields§
§inner: Box<Expression>
The inner struct that is being accessed.
§name: Identifier
The name of the struct member to access.
-§span: Span
The span covering all of inner.name
.
+§span: Span
The span covering all of inner.name
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for MemberAccess
source§fn clone(&self) -> MemberAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemberAccess
source§impl<'de> Deserialize<'de> for MemberAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§fn eq(&self, other: &MemberAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MemberAccess
source§impl Eq for MemberAccess
source§impl StructuralPartialEq for MemberAccess
Auto Trait Implementations§
§impl Freeze for MemberAccess
§impl RefUnwindSafe for MemberAccess
§impl Send for MemberAccess
§impl Sync for MemberAccess
§impl Unpin for MemberAccess
§impl UnwindSafe for MemberAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.TupleAccess.html b/leo_ast/access/struct.TupleAccess.html
index cbffd52236..7dfaa88152 100644
--- a/leo_ast/access/struct.TupleAccess.html
+++ b/leo_ast/access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access - Rust Struct leo_ast::access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/tuple_access/struct.TupleAccess.html b/leo_ast/access/tuple_access/struct.TupleAccess.html
index 987ba8e475..e3d9797579 100644
--- a/leo_ast/access/tuple_access/struct.TupleAccess.html
+++ b/leo_ast/access/tuple_access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access::tuple_access - Rust Struct leo_ast::access::tuple_access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/common/identifier/struct.Identifier.html b/leo_ast/common/identifier/struct.Identifier.html
index ff891a31dd..98f9bce091 100644
--- a/leo_ast/common/identifier/struct.Identifier.html
+++ b/leo_ast/common/identifier/struct.Identifier.html
@@ -1,21 +1,21 @@
Identifier in leo_ast::common::identifier - Rust Struct leo_ast::common::identifier::Identifier
source · pub struct Identifier {
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An identifier in a program.
Attention - When adding or removing fields from this struct,
please remember to update its Serialize and Deserialize implementation
to reflect the new struct instantiation.
-Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
-§span: Span
A span locating where the identifier occurred in the source.
+Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
+§span: Span
A span locating where the identifier occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl Identifier
sourcepub fn new(name: Symbol, id: NodeID) -> Self
Constructs a new identifier with name
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.source§impl Hash for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
diff --git a/leo_ast/common/imported_modules/fn.deserialize.html b/leo_ast/common/imported_modules/fn.deserialize.html
index 9fb6d7b4aa..65f29f75d9 100644
--- a/leo_ast/common/imported_modules/fn.deserialize.html
+++ b/leo_ast/common/imported_modules/fn.deserialize.html
@@ -1,3 +1,3 @@
deserialize in leo_ast::common::imported_modules - Rust Function leo_ast::common::imported_modules::deserialize
source · pub fn deserialize<'de, D: Deserializer<'de>>(
deserializer: D,
-) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
+) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
diff --git a/leo_ast/common/imported_modules/fn.serialize.html b/leo_ast/common/imported_modules/fn.serialize.html
index 2fa175237f..21cc4f002b 100644
--- a/leo_ast/common/imported_modules/fn.serialize.html
+++ b/leo_ast/common/imported_modules/fn.serialize.html
@@ -1,4 +1,4 @@
serialize in leo_ast::common::imported_modules - Rust
\ No newline at end of file
diff --git a/leo_ast/common/location/struct.Location.html b/leo_ast/common/location/struct.Location.html
index 2cfac147e7..543aca84f6 100644
--- a/leo_ast/common/location/struct.Location.html
+++ b/leo_ast/common/location/struct.Location.html
@@ -1,12 +1,12 @@
Location in leo_ast::common::location - Rust pub struct Location {
- pub program: Option<Symbol>,
- pub name: Symbol,
-}
Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
+ pub program: Option<Symbol>,
+ pub name: Symbol,
+}Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<&CompositeType> for Location
source§fn from(composite: &CompositeType) -> Location
Converts to this type from the input type.source§impl PartialEq for Location
source§impl Eq for Location
source§impl StructuralPartialEq for Location
Auto Trait Implementations§
§impl Freeze for Location
§impl RefUnwindSafe for Location
§impl Send for Location
§impl Sync for Location
§impl Unpin for Location
§impl UnwindSafe for Location
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/common/node/trait.Node.html b/leo_ast/common/node/trait.Node.html
index 2af510d1d8..27e7284f7e 100644
--- a/leo_ast/common/node/trait.Node.html
+++ b/leo_ast/common/node/trait.Node.html
@@ -1,12 +1,12 @@
Node in leo_ast::common::node - Rust pub trait Node: Debug + Display + Clone + PartialEq + Eq + Serialize + DeserializeOwned {
// Required methods
- fn span(&self) -> Span;
- fn set_span(&mut self, span: Span);
+ fn span(&self) -> Span;
+ fn set_span(&mut self, span: Span);
fn id(&self) -> NodeID;
fn set_id(&mut self, id: NodeID);
}
Expand description
A node in the AST.
-Required Methods§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl Node for AccessExpression
source§impl Node for Expression
source§impl Node for Literal
source§impl Node for Statement
source§impl Node for ArrayAccess
source§impl Node for AssociatedConstant
source§impl Node for AssociatedFunction
source§impl Node for MemberAccess
source§impl Node for TupleAccess
source§impl Node for ArrayExpression
source§impl Node for BinaryExpression
source§impl Node for CallExpression
source§impl Node for CastExpression
source§impl Node for ErrExpression
source§impl Node for LocatorExpression
source§impl Node for StructExpression
source§impl Node for StructVariableInitializer
source§impl Node for TernaryExpression
source§impl Node for TupleExpression
source§impl Node for UnaryExpression
source§impl Node for UnitExpression
source§impl Node for Annotation
source§impl Node for Input
source§impl Node for Output
source§impl Node for Function
source§impl Node for Mapping
source§impl Node for AssertStatement
source§impl Node for AssignStatement
source§impl Node for Block
source§impl Node for ConditionalStatement
source§impl Node for ConsoleStatement
source§impl Node for ConstDeclaration
source§impl Node for DefinitionStatement
source§impl Node for ExpressionStatement
source§impl Node for IterationStatement
source§impl Node for ReturnStatement
source§impl Node for Member
source§impl Node for Composite
source§impl Node for FunctionStub
source§impl Node for Identifier
\ No newline at end of file
diff --git a/leo_ast/expressions/access/enum.AccessExpression.html b/leo_ast/expressions/access/enum.AccessExpression.html
index 82da863240..d4b7409cd7 100644
--- a/leo_ast/expressions/access/enum.AccessExpression.html
+++ b/leo_ast/expressions/access/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/array/struct.ArrayExpression.html b/leo_ast/expressions/array/struct.ArrayExpression.html
index 942e247033..9417f26ecf 100644
--- a/leo_ast/expressions/array/struct.ArrayExpression.html
+++ b/leo_ast/expressions/array/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions::array - Rust Struct leo_ast::expressions::array::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/binary/enum.BinaryOperation.html b/leo_ast/expressions/binary/enum.BinaryOperation.html
index ad20b0114b..b62052b910 100644
--- a/leo_ast/expressions/binary/enum.BinaryOperation.html
+++ b/leo_ast/expressions/binary/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/binary/struct.BinaryExpression.html b/leo_ast/expressions/binary/struct.BinaryExpression.html
index e016cf94e5..9f705dd3d0 100644
--- a/leo_ast/expressions/binary/struct.BinaryExpression.html
+++ b/leo_ast/expressions/binary/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/call/struct.CallExpression.html b/leo_ast/expressions/call/struct.CallExpression.html
index 7f2b455757..41f0063520 100644
--- a/leo_ast/expressions/call/struct.CallExpression.html
+++ b/leo_ast/expressions/call/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions::call - Rust Struct leo_ast::expressions::call::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html
index 59684ab601..af6a90da32 100644
--- a/leo_ast/expressions/cast/struct.CastExpression.html
+++ b/leo_ast/expressions/cast/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions::cast - Rust Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
§Unary(UnaryExpression)
An unary expression.
§Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
source§fn clone(&self) -> Expression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
source§impl Eq for Expression
source§impl StructuralPartialEq for Expression
Auto Trait Implementations§
§impl Freeze for Expression
§impl RefUnwindSafe for Expression
§impl Send for Expression
§impl Sync for Expression
§impl Unpin for Expression
§impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.AssociatedConstant.html b/leo_ast/access/struct.AssociatedConstant.html
index 0fa205198d..58a61233ab 100644
--- a/leo_ast/access/struct.AssociatedConstant.html
+++ b/leo_ast/access/struct.AssociatedConstant.html
@@ -1,15 +1,15 @@
AssociatedConstant in leo_ast::access - Rust Struct leo_ast::access::AssociatedConstant
source · pub struct AssociatedConstant {
pub ty: Type,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An access expression to an struct constant., e.g. u8::MAX
.
Fields§
§ty: Type
The inner struct type.
§name: Identifier
The struct constant that is being accessed.
-§span: Span
The span for the entire expression Foo::bar()
.
+§span: Span
The span for the entire expression Foo::bar()
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for AssociatedConstant
source§fn clone(&self) -> AssociatedConstant
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AssociatedConstant
source§impl<'de> Deserialize<'de> for AssociatedConstant
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AssociatedConstant
source§impl Node for AssociatedConstant
source§impl PartialEq for AssociatedConstant
source§impl Display for AssociatedConstant
source§impl Node for AssociatedConstant
source§impl PartialEq for AssociatedConstant
source§fn eq(&self, other: &AssociatedConstant) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AssociatedConstant
source§impl Eq for AssociatedConstant
source§impl StructuralPartialEq for AssociatedConstant
Auto Trait Implementations§
§impl Freeze for AssociatedConstant
§impl RefUnwindSafe for AssociatedConstant
§impl Send for AssociatedConstant
§impl Sync for AssociatedConstant
§impl Unpin for AssociatedConstant
§impl UnwindSafe for AssociatedConstant
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.AssociatedFunction.html b/leo_ast/access/struct.AssociatedFunction.html
index ad16e78964..a56ee09ecc 100644
--- a/leo_ast/access/struct.AssociatedFunction.html
+++ b/leo_ast/access/struct.AssociatedFunction.html
@@ -2,16 +2,16 @@
pub variant: Identifier,
pub name: Identifier,
pub arguments: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
An access expression to an associated function in a struct, e.g.Pedersen64::hash()
.
Fields§
§variant: Identifier
The inner struct variant.
§name: Identifier
The static struct member function that is being accessed.
§arguments: Vec<Expression>
The arguments passed to the function name
.
-§span: Span
The span for the entire expression Foo::bar()
.
+§span: Span
The span for the entire expression Foo::bar()
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for AssociatedFunction
source§fn clone(&self) -> AssociatedFunction
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AssociatedFunction
source§impl<'de> Deserialize<'de> for AssociatedFunction
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
source§impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
source§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
source§impl Eq for AssociatedFunction
source§impl StructuralPartialEq for AssociatedFunction
Auto Trait Implementations§
§impl Freeze for AssociatedFunction
§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> Any for Twhere
diff --git a/leo_ast/access/struct.MemberAccess.html b/leo_ast/access/struct.MemberAccess.html
index fe898d71c0..dfe48d1de2 100644
--- a/leo_ast/access/struct.MemberAccess.html
+++ b/leo_ast/access/struct.MemberAccess.html
@@ -1,15 +1,15 @@
MemberAccess in leo_ast::access - Rust Struct leo_ast::access::MemberAccess
source · pub struct MemberAccess {
pub inner: Box<Expression>,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct member access expression inner.name
to some structure with named members.
Fields§
§inner: Box<Expression>
The inner struct that is being accessed.
§name: Identifier
The name of the struct member to access.
-§span: Span
The span covering all of inner.name
.
+§span: Span
The span covering all of inner.name
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for MemberAccess
source§fn clone(&self) -> MemberAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemberAccess
source§impl<'de> Deserialize<'de> for MemberAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§fn eq(&self, other: &MemberAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MemberAccess
source§impl Eq for MemberAccess
source§impl StructuralPartialEq for MemberAccess
Auto Trait Implementations§
§impl Freeze for MemberAccess
§impl RefUnwindSafe for MemberAccess
§impl Send for MemberAccess
§impl Sync for MemberAccess
§impl Unpin for MemberAccess
§impl UnwindSafe for MemberAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.TupleAccess.html b/leo_ast/access/struct.TupleAccess.html
index cbffd52236..7dfaa88152 100644
--- a/leo_ast/access/struct.TupleAccess.html
+++ b/leo_ast/access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access - Rust Struct leo_ast::access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/tuple_access/struct.TupleAccess.html b/leo_ast/access/tuple_access/struct.TupleAccess.html
index 987ba8e475..e3d9797579 100644
--- a/leo_ast/access/tuple_access/struct.TupleAccess.html
+++ b/leo_ast/access/tuple_access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access::tuple_access - Rust Struct leo_ast::access::tuple_access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/common/identifier/struct.Identifier.html b/leo_ast/common/identifier/struct.Identifier.html
index ff891a31dd..98f9bce091 100644
--- a/leo_ast/common/identifier/struct.Identifier.html
+++ b/leo_ast/common/identifier/struct.Identifier.html
@@ -1,21 +1,21 @@
Identifier in leo_ast::common::identifier - Rust Struct leo_ast::common::identifier::Identifier
source · pub struct Identifier {
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An identifier in a program.
Attention - When adding or removing fields from this struct,
please remember to update its Serialize and Deserialize implementation
to reflect the new struct instantiation.
-Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
-§span: Span
A span locating where the identifier occurred in the source.
+Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
+§span: Span
A span locating where the identifier occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl Identifier
sourcepub fn new(name: Symbol, id: NodeID) -> Self
Constructs a new identifier with name
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.source§impl Hash for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
diff --git a/leo_ast/common/imported_modules/fn.deserialize.html b/leo_ast/common/imported_modules/fn.deserialize.html
index 9fb6d7b4aa..65f29f75d9 100644
--- a/leo_ast/common/imported_modules/fn.deserialize.html
+++ b/leo_ast/common/imported_modules/fn.deserialize.html
@@ -1,3 +1,3 @@
deserialize in leo_ast::common::imported_modules - Rust Function leo_ast::common::imported_modules::deserialize
source · pub fn deserialize<'de, D: Deserializer<'de>>(
deserializer: D,
-) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
+) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
diff --git a/leo_ast/common/imported_modules/fn.serialize.html b/leo_ast/common/imported_modules/fn.serialize.html
index 2fa175237f..21cc4f002b 100644
--- a/leo_ast/common/imported_modules/fn.serialize.html
+++ b/leo_ast/common/imported_modules/fn.serialize.html
@@ -1,4 +1,4 @@
serialize in leo_ast::common::imported_modules - Rust
\ No newline at end of file
diff --git a/leo_ast/common/location/struct.Location.html b/leo_ast/common/location/struct.Location.html
index 2cfac147e7..543aca84f6 100644
--- a/leo_ast/common/location/struct.Location.html
+++ b/leo_ast/common/location/struct.Location.html
@@ -1,12 +1,12 @@
Location in leo_ast::common::location - Rust pub struct Location {
- pub program: Option<Symbol>,
- pub name: Symbol,
-}
Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
+ pub program: Option<Symbol>,
+ pub name: Symbol,
+}Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<&CompositeType> for Location
source§fn from(composite: &CompositeType) -> Location
Converts to this type from the input type.source§impl PartialEq for Location
source§impl Eq for Location
source§impl StructuralPartialEq for Location
Auto Trait Implementations§
§impl Freeze for Location
§impl RefUnwindSafe for Location
§impl Send for Location
§impl Sync for Location
§impl Unpin for Location
§impl UnwindSafe for Location
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/common/node/trait.Node.html b/leo_ast/common/node/trait.Node.html
index 2af510d1d8..27e7284f7e 100644
--- a/leo_ast/common/node/trait.Node.html
+++ b/leo_ast/common/node/trait.Node.html
@@ -1,12 +1,12 @@
Node in leo_ast::common::node - Rust pub trait Node: Debug + Display + Clone + PartialEq + Eq + Serialize + DeserializeOwned {
// Required methods
- fn span(&self) -> Span;
- fn set_span(&mut self, span: Span);
+ fn span(&self) -> Span;
+ fn set_span(&mut self, span: Span);
fn id(&self) -> NodeID;
fn set_id(&mut self, id: NodeID);
}
Expand description
A node in the AST.
-Required Methods§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl Node for AccessExpression
source§impl Node for Expression
source§impl Node for Literal
source§impl Node for Statement
source§impl Node for ArrayAccess
source§impl Node for AssociatedConstant
source§impl Node for AssociatedFunction
source§impl Node for MemberAccess
source§impl Node for TupleAccess
source§impl Node for ArrayExpression
source§impl Node for BinaryExpression
source§impl Node for CallExpression
source§impl Node for CastExpression
source§impl Node for ErrExpression
source§impl Node for LocatorExpression
source§impl Node for StructExpression
source§impl Node for StructVariableInitializer
source§impl Node for TernaryExpression
source§impl Node for TupleExpression
source§impl Node for UnaryExpression
source§impl Node for UnitExpression
source§impl Node for Annotation
source§impl Node for Input
source§impl Node for Output
source§impl Node for Function
source§impl Node for Mapping
source§impl Node for AssertStatement
source§impl Node for AssignStatement
source§impl Node for Block
source§impl Node for ConditionalStatement
source§impl Node for ConsoleStatement
source§impl Node for ConstDeclaration
source§impl Node for DefinitionStatement
source§impl Node for ExpressionStatement
source§impl Node for IterationStatement
source§impl Node for ReturnStatement
source§impl Node for Member
source§impl Node for Composite
source§impl Node for FunctionStub
source§impl Node for Identifier
\ No newline at end of file
diff --git a/leo_ast/expressions/access/enum.AccessExpression.html b/leo_ast/expressions/access/enum.AccessExpression.html
index 82da863240..d4b7409cd7 100644
--- a/leo_ast/expressions/access/enum.AccessExpression.html
+++ b/leo_ast/expressions/access/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/array/struct.ArrayExpression.html b/leo_ast/expressions/array/struct.ArrayExpression.html
index 942e247033..9417f26ecf 100644
--- a/leo_ast/expressions/array/struct.ArrayExpression.html
+++ b/leo_ast/expressions/array/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions::array - Rust Struct leo_ast::expressions::array::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/binary/enum.BinaryOperation.html b/leo_ast/expressions/binary/enum.BinaryOperation.html
index ad20b0114b..b62052b910 100644
--- a/leo_ast/expressions/binary/enum.BinaryOperation.html
+++ b/leo_ast/expressions/binary/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/binary/struct.BinaryExpression.html b/leo_ast/expressions/binary/struct.BinaryExpression.html
index e016cf94e5..9f705dd3d0 100644
--- a/leo_ast/expressions/binary/struct.BinaryExpression.html
+++ b/leo_ast/expressions/binary/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/call/struct.CallExpression.html b/leo_ast/expressions/call/struct.CallExpression.html
index 7f2b455757..41f0063520 100644
--- a/leo_ast/expressions/call/struct.CallExpression.html
+++ b/leo_ast/expressions/call/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions::call - Rust Struct leo_ast::expressions::call::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html
index 59684ab601..af6a90da32 100644
--- a/leo_ast/expressions/cast/struct.CastExpression.html
+++ b/leo_ast/expressions/cast/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions::cast - Rust Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
§Unary(UnaryExpression)
An unary expression.
§Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
source§fn clone(&self) -> Expression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
source§impl Eq for Expression
source§impl StructuralPartialEq for Expression
Auto Trait Implementations§
§impl Freeze for Expression
§impl RefUnwindSafe for Expression
§impl Send for Expression
§impl Sync for Expression
§impl Unpin for Expression
§impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
Struct leo_ast::access::AssociatedConstant
source · pub struct AssociatedConstant {
pub ty: Type,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An access expression to an struct constant., e.g. u8::MAX
.
Fields§
§ty: Type
The inner struct type.
name: Identifier
The struct constant that is being accessed.
-span: Span
The span for the entire expression Foo::bar()
.
span: Span
The span for the entire expression Foo::bar()
.
id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for AssociatedConstant
impl Clone for AssociatedConstant
source§fn clone(&self) -> AssociatedConstant
fn clone(&self) -> AssociatedConstant
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AssociatedConstant
impl Debug for AssociatedConstant
source§impl<'de> Deserialize<'de> for AssociatedConstant
impl<'de> Deserialize<'de> for AssociatedConstant
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>,
source§impl Display for AssociatedConstant
impl Display for AssociatedConstant
source§impl Node for AssociatedConstant
impl Node for AssociatedConstant
source§impl PartialEq for AssociatedConstant
impl PartialEq for AssociatedConstant
source§impl Display for AssociatedConstant
impl Display for AssociatedConstant
source§impl Node for AssociatedConstant
impl Node for AssociatedConstant
source§impl PartialEq for AssociatedConstant
impl PartialEq for AssociatedConstant
source§fn eq(&self, other: &AssociatedConstant) -> bool
fn eq(&self, other: &AssociatedConstant) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AssociatedConstant
impl Serialize for AssociatedConstant
impl Eq for AssociatedConstant
impl StructuralPartialEq for AssociatedConstant
Auto Trait Implementations§
impl Freeze for AssociatedConstant
impl RefUnwindSafe for AssociatedConstant
impl Send for AssociatedConstant
impl Sync for AssociatedConstant
impl Unpin for AssociatedConstant
impl UnwindSafe for AssociatedConstant
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.AssociatedFunction.html b/leo_ast/access/struct.AssociatedFunction.html
index ad16e78964..a56ee09ecc 100644
--- a/leo_ast/access/struct.AssociatedFunction.html
+++ b/leo_ast/access/struct.AssociatedFunction.html
@@ -2,16 +2,16 @@
pub variant: Identifier,
pub name: Identifier,
pub arguments: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
An access expression to an associated function in a struct, e.g.Pedersen64::hash()
.
Fields§
§variant: Identifier
The inner struct variant.
§name: Identifier
The static struct member function that is being accessed.
§arguments: Vec<Expression>
The arguments passed to the function name
.
-§span: Span
The span for the entire expression Foo::bar()
.
+§span: Span
The span for the entire expression Foo::bar()
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for AssociatedFunction
source§fn clone(&self) -> AssociatedFunction
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AssociatedFunction
source§impl<'de> Deserialize<'de> for AssociatedFunction
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
source§impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
source§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
source§impl Eq for AssociatedFunction
source§impl StructuralPartialEq for AssociatedFunction
Auto Trait Implementations§
§impl Freeze for AssociatedFunction
§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> Any for Twhere
diff --git a/leo_ast/access/struct.MemberAccess.html b/leo_ast/access/struct.MemberAccess.html
index fe898d71c0..dfe48d1de2 100644
--- a/leo_ast/access/struct.MemberAccess.html
+++ b/leo_ast/access/struct.MemberAccess.html
@@ -1,15 +1,15 @@
MemberAccess in leo_ast::access - Rust Struct leo_ast::access::MemberAccess
source · pub struct MemberAccess {
pub inner: Box<Expression>,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct member access expression inner.name
to some structure with named members.
Fields§
§inner: Box<Expression>
The inner struct that is being accessed.
§name: Identifier
The name of the struct member to access.
-§span: Span
The span covering all of inner.name
.
+§span: Span
The span covering all of inner.name
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for MemberAccess
source§fn clone(&self) -> MemberAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemberAccess
source§impl<'de> Deserialize<'de> for MemberAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§fn eq(&self, other: &MemberAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MemberAccess
source§impl Eq for MemberAccess
source§impl StructuralPartialEq for MemberAccess
Auto Trait Implementations§
§impl Freeze for MemberAccess
§impl RefUnwindSafe for MemberAccess
§impl Send for MemberAccess
§impl Sync for MemberAccess
§impl Unpin for MemberAccess
§impl UnwindSafe for MemberAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.TupleAccess.html b/leo_ast/access/struct.TupleAccess.html
index cbffd52236..7dfaa88152 100644
--- a/leo_ast/access/struct.TupleAccess.html
+++ b/leo_ast/access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access - Rust Struct leo_ast::access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/tuple_access/struct.TupleAccess.html b/leo_ast/access/tuple_access/struct.TupleAccess.html
index 987ba8e475..e3d9797579 100644
--- a/leo_ast/access/tuple_access/struct.TupleAccess.html
+++ b/leo_ast/access/tuple_access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access::tuple_access - Rust Struct leo_ast::access::tuple_access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/common/identifier/struct.Identifier.html b/leo_ast/common/identifier/struct.Identifier.html
index ff891a31dd..98f9bce091 100644
--- a/leo_ast/common/identifier/struct.Identifier.html
+++ b/leo_ast/common/identifier/struct.Identifier.html
@@ -1,21 +1,21 @@
Identifier in leo_ast::common::identifier - Rust Struct leo_ast::common::identifier::Identifier
source · pub struct Identifier {
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An identifier in a program.
Attention - When adding or removing fields from this struct,
please remember to update its Serialize and Deserialize implementation
to reflect the new struct instantiation.
-Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
-§span: Span
A span locating where the identifier occurred in the source.
+Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
+§span: Span
A span locating where the identifier occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl Identifier
sourcepub fn new(name: Symbol, id: NodeID) -> Self
Constructs a new identifier with name
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.source§impl Hash for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
diff --git a/leo_ast/common/imported_modules/fn.deserialize.html b/leo_ast/common/imported_modules/fn.deserialize.html
index 9fb6d7b4aa..65f29f75d9 100644
--- a/leo_ast/common/imported_modules/fn.deserialize.html
+++ b/leo_ast/common/imported_modules/fn.deserialize.html
@@ -1,3 +1,3 @@
deserialize in leo_ast::common::imported_modules - Rust Function leo_ast::common::imported_modules::deserialize
source · pub fn deserialize<'de, D: Deserializer<'de>>(
deserializer: D,
-) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
+) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
diff --git a/leo_ast/common/imported_modules/fn.serialize.html b/leo_ast/common/imported_modules/fn.serialize.html
index 2fa175237f..21cc4f002b 100644
--- a/leo_ast/common/imported_modules/fn.serialize.html
+++ b/leo_ast/common/imported_modules/fn.serialize.html
@@ -1,4 +1,4 @@
serialize in leo_ast::common::imported_modules - Rust
\ No newline at end of file
diff --git a/leo_ast/common/location/struct.Location.html b/leo_ast/common/location/struct.Location.html
index 2cfac147e7..543aca84f6 100644
--- a/leo_ast/common/location/struct.Location.html
+++ b/leo_ast/common/location/struct.Location.html
@@ -1,12 +1,12 @@
Location in leo_ast::common::location - Rust pub struct Location {
- pub program: Option<Symbol>,
- pub name: Symbol,
-}
Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
+ pub program: Option<Symbol>,
+ pub name: Symbol,
+}Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<&CompositeType> for Location
source§fn from(composite: &CompositeType) -> Location
Converts to this type from the input type.source§impl PartialEq for Location
source§impl Eq for Location
source§impl StructuralPartialEq for Location
Auto Trait Implementations§
§impl Freeze for Location
§impl RefUnwindSafe for Location
§impl Send for Location
§impl Sync for Location
§impl Unpin for Location
§impl UnwindSafe for Location
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/common/node/trait.Node.html b/leo_ast/common/node/trait.Node.html
index 2af510d1d8..27e7284f7e 100644
--- a/leo_ast/common/node/trait.Node.html
+++ b/leo_ast/common/node/trait.Node.html
@@ -1,12 +1,12 @@
Node in leo_ast::common::node - Rust pub trait Node: Debug + Display + Clone + PartialEq + Eq + Serialize + DeserializeOwned {
// Required methods
- fn span(&self) -> Span;
- fn set_span(&mut self, span: Span);
+ fn span(&self) -> Span;
+ fn set_span(&mut self, span: Span);
fn id(&self) -> NodeID;
fn set_id(&mut self, id: NodeID);
}
Expand description
A node in the AST.
-Required Methods§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl Node for AccessExpression
source§impl Node for Expression
source§impl Node for Literal
source§impl Node for Statement
source§impl Node for ArrayAccess
source§impl Node for AssociatedConstant
source§impl Node for AssociatedFunction
source§impl Node for MemberAccess
source§impl Node for TupleAccess
source§impl Node for ArrayExpression
source§impl Node for BinaryExpression
source§impl Node for CallExpression
source§impl Node for CastExpression
source§impl Node for ErrExpression
source§impl Node for LocatorExpression
source§impl Node for StructExpression
source§impl Node for StructVariableInitializer
source§impl Node for TernaryExpression
source§impl Node for TupleExpression
source§impl Node for UnaryExpression
source§impl Node for UnitExpression
source§impl Node for Annotation
source§impl Node for Input
source§impl Node for Output
source§impl Node for Function
source§impl Node for Mapping
source§impl Node for AssertStatement
source§impl Node for AssignStatement
source§impl Node for Block
source§impl Node for ConditionalStatement
source§impl Node for ConsoleStatement
source§impl Node for ConstDeclaration
source§impl Node for DefinitionStatement
source§impl Node for ExpressionStatement
source§impl Node for IterationStatement
source§impl Node for ReturnStatement
source§impl Node for Member
source§impl Node for Composite
source§impl Node for FunctionStub
source§impl Node for Identifier
\ No newline at end of file
diff --git a/leo_ast/expressions/access/enum.AccessExpression.html b/leo_ast/expressions/access/enum.AccessExpression.html
index 82da863240..d4b7409cd7 100644
--- a/leo_ast/expressions/access/enum.AccessExpression.html
+++ b/leo_ast/expressions/access/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/array/struct.ArrayExpression.html b/leo_ast/expressions/array/struct.ArrayExpression.html
index 942e247033..9417f26ecf 100644
--- a/leo_ast/expressions/array/struct.ArrayExpression.html
+++ b/leo_ast/expressions/array/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions::array - Rust Struct leo_ast::expressions::array::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/binary/enum.BinaryOperation.html b/leo_ast/expressions/binary/enum.BinaryOperation.html
index ad20b0114b..b62052b910 100644
--- a/leo_ast/expressions/binary/enum.BinaryOperation.html
+++ b/leo_ast/expressions/binary/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/binary/struct.BinaryExpression.html b/leo_ast/expressions/binary/struct.BinaryExpression.html
index e016cf94e5..9f705dd3d0 100644
--- a/leo_ast/expressions/binary/struct.BinaryExpression.html
+++ b/leo_ast/expressions/binary/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/call/struct.CallExpression.html b/leo_ast/expressions/call/struct.CallExpression.html
index 7f2b455757..41f0063520 100644
--- a/leo_ast/expressions/call/struct.CallExpression.html
+++ b/leo_ast/expressions/call/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions::call - Rust Struct leo_ast::expressions::call::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html
index 59684ab601..af6a90da32 100644
--- a/leo_ast/expressions/cast/struct.CastExpression.html
+++ b/leo_ast/expressions/cast/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions::cast - Rust Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
§Unary(UnaryExpression)
An unary expression.
§Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
source§fn clone(&self) -> Expression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
source§impl Eq for Expression
source§impl StructuralPartialEq for Expression
Auto Trait Implementations§
§impl Freeze for Expression
§impl RefUnwindSafe for Expression
§impl Send for Expression
§impl Sync for Expression
§impl Unpin for Expression
§impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.AssociatedFunction.html b/leo_ast/access/struct.AssociatedFunction.html
index ad16e78964..a56ee09ecc 100644
--- a/leo_ast/access/struct.AssociatedFunction.html
+++ b/leo_ast/access/struct.AssociatedFunction.html
@@ -2,16 +2,16 @@
pub variant: Identifier,
pub name: Identifier,
pub arguments: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
An access expression to an associated function in a struct, e.g.Pedersen64::hash()
.
Fields§
§variant: Identifier
The inner struct variant.
§name: Identifier
The static struct member function that is being accessed.
§arguments: Vec<Expression>
The arguments passed to the function name
.
-§span: Span
The span for the entire expression Foo::bar()
.
+§span: Span
The span for the entire expression Foo::bar()
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for AssociatedFunction
source§fn clone(&self) -> AssociatedFunction
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AssociatedFunction
source§impl<'de> Deserialize<'de> for AssociatedFunction
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
source§impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
source§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
source§impl Eq for AssociatedFunction
source§impl StructuralPartialEq for AssociatedFunction
Auto Trait Implementations§
§impl Freeze for AssociatedFunction
§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> Any for Twhere
diff --git a/leo_ast/access/struct.MemberAccess.html b/leo_ast/access/struct.MemberAccess.html
index fe898d71c0..dfe48d1de2 100644
--- a/leo_ast/access/struct.MemberAccess.html
+++ b/leo_ast/access/struct.MemberAccess.html
@@ -1,15 +1,15 @@
MemberAccess in leo_ast::access - Rust Struct leo_ast::access::MemberAccess
source · pub struct MemberAccess {
pub inner: Box<Expression>,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct member access expression inner.name
to some structure with named members.
Fields§
§inner: Box<Expression>
The inner struct that is being accessed.
§name: Identifier
The name of the struct member to access.
-§span: Span
The span covering all of inner.name
.
+§span: Span
The span covering all of inner.name
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for MemberAccess
source§fn clone(&self) -> MemberAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemberAccess
source§impl<'de> Deserialize<'de> for MemberAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§fn eq(&self, other: &MemberAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MemberAccess
source§impl Eq for MemberAccess
source§impl StructuralPartialEq for MemberAccess
Auto Trait Implementations§
§impl Freeze for MemberAccess
§impl RefUnwindSafe for MemberAccess
§impl Send for MemberAccess
§impl Sync for MemberAccess
§impl Unpin for MemberAccess
§impl UnwindSafe for MemberAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.TupleAccess.html b/leo_ast/access/struct.TupleAccess.html
index cbffd52236..7dfaa88152 100644
--- a/leo_ast/access/struct.TupleAccess.html
+++ b/leo_ast/access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access - Rust Struct leo_ast::access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/tuple_access/struct.TupleAccess.html b/leo_ast/access/tuple_access/struct.TupleAccess.html
index 987ba8e475..e3d9797579 100644
--- a/leo_ast/access/tuple_access/struct.TupleAccess.html
+++ b/leo_ast/access/tuple_access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access::tuple_access - Rust Struct leo_ast::access::tuple_access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/common/identifier/struct.Identifier.html b/leo_ast/common/identifier/struct.Identifier.html
index ff891a31dd..98f9bce091 100644
--- a/leo_ast/common/identifier/struct.Identifier.html
+++ b/leo_ast/common/identifier/struct.Identifier.html
@@ -1,21 +1,21 @@
Identifier in leo_ast::common::identifier - Rust Struct leo_ast::common::identifier::Identifier
source · pub struct Identifier {
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An identifier in a program.
Attention - When adding or removing fields from this struct,
please remember to update its Serialize and Deserialize implementation
to reflect the new struct instantiation.
-Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
-§span: Span
A span locating where the identifier occurred in the source.
+Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
+§span: Span
A span locating where the identifier occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl Identifier
sourcepub fn new(name: Symbol, id: NodeID) -> Self
Constructs a new identifier with name
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.source§impl Hash for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
diff --git a/leo_ast/common/imported_modules/fn.deserialize.html b/leo_ast/common/imported_modules/fn.deserialize.html
index 9fb6d7b4aa..65f29f75d9 100644
--- a/leo_ast/common/imported_modules/fn.deserialize.html
+++ b/leo_ast/common/imported_modules/fn.deserialize.html
@@ -1,3 +1,3 @@
deserialize in leo_ast::common::imported_modules - Rust Function leo_ast::common::imported_modules::deserialize
source · pub fn deserialize<'de, D: Deserializer<'de>>(
deserializer: D,
-) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
+) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
diff --git a/leo_ast/common/imported_modules/fn.serialize.html b/leo_ast/common/imported_modules/fn.serialize.html
index 2fa175237f..21cc4f002b 100644
--- a/leo_ast/common/imported_modules/fn.serialize.html
+++ b/leo_ast/common/imported_modules/fn.serialize.html
@@ -1,4 +1,4 @@
serialize in leo_ast::common::imported_modules - Rust
\ No newline at end of file
diff --git a/leo_ast/common/location/struct.Location.html b/leo_ast/common/location/struct.Location.html
index 2cfac147e7..543aca84f6 100644
--- a/leo_ast/common/location/struct.Location.html
+++ b/leo_ast/common/location/struct.Location.html
@@ -1,12 +1,12 @@
Location in leo_ast::common::location - Rust pub struct Location {
- pub program: Option<Symbol>,
- pub name: Symbol,
-}
Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
+ pub program: Option<Symbol>,
+ pub name: Symbol,
+}Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<&CompositeType> for Location
source§fn from(composite: &CompositeType) -> Location
Converts to this type from the input type.source§impl PartialEq for Location
source§impl Eq for Location
source§impl StructuralPartialEq for Location
Auto Trait Implementations§
§impl Freeze for Location
§impl RefUnwindSafe for Location
§impl Send for Location
§impl Sync for Location
§impl Unpin for Location
§impl UnwindSafe for Location
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/common/node/trait.Node.html b/leo_ast/common/node/trait.Node.html
index 2af510d1d8..27e7284f7e 100644
--- a/leo_ast/common/node/trait.Node.html
+++ b/leo_ast/common/node/trait.Node.html
@@ -1,12 +1,12 @@
Node in leo_ast::common::node - Rust pub trait Node: Debug + Display + Clone + PartialEq + Eq + Serialize + DeserializeOwned {
// Required methods
- fn span(&self) -> Span;
- fn set_span(&mut self, span: Span);
+ fn span(&self) -> Span;
+ fn set_span(&mut self, span: Span);
fn id(&self) -> NodeID;
fn set_id(&mut self, id: NodeID);
}
Expand description
A node in the AST.
-Required Methods§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl Node for AccessExpression
source§impl Node for Expression
source§impl Node for Literal
source§impl Node for Statement
source§impl Node for ArrayAccess
source§impl Node for AssociatedConstant
source§impl Node for AssociatedFunction
source§impl Node for MemberAccess
source§impl Node for TupleAccess
source§impl Node for ArrayExpression
source§impl Node for BinaryExpression
source§impl Node for CallExpression
source§impl Node for CastExpression
source§impl Node for ErrExpression
source§impl Node for LocatorExpression
source§impl Node for StructExpression
source§impl Node for StructVariableInitializer
source§impl Node for TernaryExpression
source§impl Node for TupleExpression
source§impl Node for UnaryExpression
source§impl Node for UnitExpression
source§impl Node for Annotation
source§impl Node for Input
source§impl Node for Output
source§impl Node for Function
source§impl Node for Mapping
source§impl Node for AssertStatement
source§impl Node for AssignStatement
source§impl Node for Block
source§impl Node for ConditionalStatement
source§impl Node for ConsoleStatement
source§impl Node for ConstDeclaration
source§impl Node for DefinitionStatement
source§impl Node for ExpressionStatement
source§impl Node for IterationStatement
source§impl Node for ReturnStatement
source§impl Node for Member
source§impl Node for Composite
source§impl Node for FunctionStub
source§impl Node for Identifier
\ No newline at end of file
diff --git a/leo_ast/expressions/access/enum.AccessExpression.html b/leo_ast/expressions/access/enum.AccessExpression.html
index 82da863240..d4b7409cd7 100644
--- a/leo_ast/expressions/access/enum.AccessExpression.html
+++ b/leo_ast/expressions/access/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/array/struct.ArrayExpression.html b/leo_ast/expressions/array/struct.ArrayExpression.html
index 942e247033..9417f26ecf 100644
--- a/leo_ast/expressions/array/struct.ArrayExpression.html
+++ b/leo_ast/expressions/array/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions::array - Rust Struct leo_ast::expressions::array::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/binary/enum.BinaryOperation.html b/leo_ast/expressions/binary/enum.BinaryOperation.html
index ad20b0114b..b62052b910 100644
--- a/leo_ast/expressions/binary/enum.BinaryOperation.html
+++ b/leo_ast/expressions/binary/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/binary/struct.BinaryExpression.html b/leo_ast/expressions/binary/struct.BinaryExpression.html
index e016cf94e5..9f705dd3d0 100644
--- a/leo_ast/expressions/binary/struct.BinaryExpression.html
+++ b/leo_ast/expressions/binary/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/call/struct.CallExpression.html b/leo_ast/expressions/call/struct.CallExpression.html
index 7f2b455757..41f0063520 100644
--- a/leo_ast/expressions/call/struct.CallExpression.html
+++ b/leo_ast/expressions/call/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions::call - Rust Struct leo_ast::expressions::call::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html
index 59684ab601..af6a90da32 100644
--- a/leo_ast/expressions/cast/struct.CastExpression.html
+++ b/leo_ast/expressions/cast/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions::cast - Rust Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
§Unary(UnaryExpression)
An unary expression.
§Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
source§fn clone(&self) -> Expression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
source§impl Eq for Expression
source§impl StructuralPartialEq for Expression
Auto Trait Implementations§
§impl Freeze for Expression
§impl RefUnwindSafe for Expression
§impl Send for Expression
§impl Sync for Expression
§impl Unpin for Expression
§impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
Expand description
An access expression to an associated function in a struct, e.g.Pedersen64::hash()
.
Fields§
§variant: Identifier
The inner struct variant.
name: Identifier
The static struct member function that is being accessed.
arguments: Vec<Expression>
The arguments passed to the function name
.
span: Span
The span for the entire expression Foo::bar()
.
span: Span
The span for the entire expression Foo::bar()
.
id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for AssociatedFunction
impl Clone for AssociatedFunction
source§fn clone(&self) -> AssociatedFunction
fn clone(&self) -> AssociatedFunction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
source§impl Display for AssociatedFunction
impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
impl PartialEq for AssociatedFunction
source§impl Display for AssociatedFunction
impl Display for AssociatedFunction
source§impl Node for AssociatedFunction
impl Node for AssociatedFunction
source§impl PartialEq for AssociatedFunction
impl PartialEq for AssociatedFunction
source§fn eq(&self, other: &AssociatedFunction) -> bool
fn eq(&self, other: &AssociatedFunction) -> bool
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 StructuralPartialEq for AssociatedFunction
Auto Trait Implementations§
impl Freeze for AssociatedFunction
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> Any for Twhere
diff --git a/leo_ast/access/struct.MemberAccess.html b/leo_ast/access/struct.MemberAccess.html
index fe898d71c0..dfe48d1de2 100644
--- a/leo_ast/access/struct.MemberAccess.html
+++ b/leo_ast/access/struct.MemberAccess.html
@@ -1,15 +1,15 @@
MemberAccess in leo_ast::access - Rust Struct leo_ast::access::MemberAccess
source · pub struct MemberAccess {
pub inner: Box<Expression>,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct member access expression inner.name
to some structure with named members.
Fields§
§inner: Box<Expression>
The inner struct that is being accessed.
§name: Identifier
The name of the struct member to access.
-§span: Span
The span covering all of inner.name
.
+§span: Span
The span covering all of inner.name
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for MemberAccess
source§fn clone(&self) -> MemberAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemberAccess
source§impl<'de> Deserialize<'de> for MemberAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§fn eq(&self, other: &MemberAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MemberAccess
source§impl Eq for MemberAccess
source§impl StructuralPartialEq for MemberAccess
Auto Trait Implementations§
§impl Freeze for MemberAccess
§impl RefUnwindSafe for MemberAccess
§impl Send for MemberAccess
§impl Sync for MemberAccess
§impl Unpin for MemberAccess
§impl UnwindSafe for MemberAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.TupleAccess.html b/leo_ast/access/struct.TupleAccess.html
index cbffd52236..7dfaa88152 100644
--- a/leo_ast/access/struct.TupleAccess.html
+++ b/leo_ast/access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access - Rust Struct leo_ast::access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/tuple_access/struct.TupleAccess.html b/leo_ast/access/tuple_access/struct.TupleAccess.html
index 987ba8e475..e3d9797579 100644
--- a/leo_ast/access/tuple_access/struct.TupleAccess.html
+++ b/leo_ast/access/tuple_access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access::tuple_access - Rust Struct leo_ast::access::tuple_access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/common/identifier/struct.Identifier.html b/leo_ast/common/identifier/struct.Identifier.html
index ff891a31dd..98f9bce091 100644
--- a/leo_ast/common/identifier/struct.Identifier.html
+++ b/leo_ast/common/identifier/struct.Identifier.html
@@ -1,21 +1,21 @@
Identifier in leo_ast::common::identifier - Rust Struct leo_ast::common::identifier::Identifier
source · pub struct Identifier {
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An identifier in a program.
Attention - When adding or removing fields from this struct,
please remember to update its Serialize and Deserialize implementation
to reflect the new struct instantiation.
-Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
-§span: Span
A span locating where the identifier occurred in the source.
+Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
+§span: Span
A span locating where the identifier occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl Identifier
sourcepub fn new(name: Symbol, id: NodeID) -> Self
Constructs a new identifier with name
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.source§impl Hash for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
diff --git a/leo_ast/common/imported_modules/fn.deserialize.html b/leo_ast/common/imported_modules/fn.deserialize.html
index 9fb6d7b4aa..65f29f75d9 100644
--- a/leo_ast/common/imported_modules/fn.deserialize.html
+++ b/leo_ast/common/imported_modules/fn.deserialize.html
@@ -1,3 +1,3 @@
deserialize in leo_ast::common::imported_modules - Rust Function leo_ast::common::imported_modules::deserialize
source · pub fn deserialize<'de, D: Deserializer<'de>>(
deserializer: D,
-) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
+) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
diff --git a/leo_ast/common/imported_modules/fn.serialize.html b/leo_ast/common/imported_modules/fn.serialize.html
index 2fa175237f..21cc4f002b 100644
--- a/leo_ast/common/imported_modules/fn.serialize.html
+++ b/leo_ast/common/imported_modules/fn.serialize.html
@@ -1,4 +1,4 @@
serialize in leo_ast::common::imported_modules - Rust
\ No newline at end of file
diff --git a/leo_ast/common/location/struct.Location.html b/leo_ast/common/location/struct.Location.html
index 2cfac147e7..543aca84f6 100644
--- a/leo_ast/common/location/struct.Location.html
+++ b/leo_ast/common/location/struct.Location.html
@@ -1,12 +1,12 @@
Location in leo_ast::common::location - Rust pub struct Location {
- pub program: Option<Symbol>,
- pub name: Symbol,
-}
Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
+ pub program: Option<Symbol>,
+ pub name: Symbol,
+}Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<&CompositeType> for Location
source§fn from(composite: &CompositeType) -> Location
Converts to this type from the input type.source§impl PartialEq for Location
source§impl Eq for Location
source§impl StructuralPartialEq for Location
Auto Trait Implementations§
§impl Freeze for Location
§impl RefUnwindSafe for Location
§impl Send for Location
§impl Sync for Location
§impl Unpin for Location
§impl UnwindSafe for Location
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/common/node/trait.Node.html b/leo_ast/common/node/trait.Node.html
index 2af510d1d8..27e7284f7e 100644
--- a/leo_ast/common/node/trait.Node.html
+++ b/leo_ast/common/node/trait.Node.html
@@ -1,12 +1,12 @@
Node in leo_ast::common::node - Rust pub trait Node: Debug + Display + Clone + PartialEq + Eq + Serialize + DeserializeOwned {
// Required methods
- fn span(&self) -> Span;
- fn set_span(&mut self, span: Span);
+ fn span(&self) -> Span;
+ fn set_span(&mut self, span: Span);
fn id(&self) -> NodeID;
fn set_id(&mut self, id: NodeID);
}
Expand description
A node in the AST.
-Required Methods§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl Node for AccessExpression
source§impl Node for Expression
source§impl Node for Literal
source§impl Node for Statement
source§impl Node for ArrayAccess
source§impl Node for AssociatedConstant
source§impl Node for AssociatedFunction
source§impl Node for MemberAccess
source§impl Node for TupleAccess
source§impl Node for ArrayExpression
source§impl Node for BinaryExpression
source§impl Node for CallExpression
source§impl Node for CastExpression
source§impl Node for ErrExpression
source§impl Node for LocatorExpression
source§impl Node for StructExpression
source§impl Node for StructVariableInitializer
source§impl Node for TernaryExpression
source§impl Node for TupleExpression
source§impl Node for UnaryExpression
source§impl Node for UnitExpression
source§impl Node for Annotation
source§impl Node for Input
source§impl Node for Output
source§impl Node for Function
source§impl Node for Mapping
source§impl Node for AssertStatement
source§impl Node for AssignStatement
source§impl Node for Block
source§impl Node for ConditionalStatement
source§impl Node for ConsoleStatement
source§impl Node for ConstDeclaration
source§impl Node for DefinitionStatement
source§impl Node for ExpressionStatement
source§impl Node for IterationStatement
source§impl Node for ReturnStatement
source§impl Node for Member
source§impl Node for Composite
source§impl Node for FunctionStub
source§impl Node for Identifier
\ No newline at end of file
diff --git a/leo_ast/expressions/access/enum.AccessExpression.html b/leo_ast/expressions/access/enum.AccessExpression.html
index 82da863240..d4b7409cd7 100644
--- a/leo_ast/expressions/access/enum.AccessExpression.html
+++ b/leo_ast/expressions/access/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/array/struct.ArrayExpression.html b/leo_ast/expressions/array/struct.ArrayExpression.html
index 942e247033..9417f26ecf 100644
--- a/leo_ast/expressions/array/struct.ArrayExpression.html
+++ b/leo_ast/expressions/array/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions::array - Rust Struct leo_ast::expressions::array::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/binary/enum.BinaryOperation.html b/leo_ast/expressions/binary/enum.BinaryOperation.html
index ad20b0114b..b62052b910 100644
--- a/leo_ast/expressions/binary/enum.BinaryOperation.html
+++ b/leo_ast/expressions/binary/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/binary/struct.BinaryExpression.html b/leo_ast/expressions/binary/struct.BinaryExpression.html
index e016cf94e5..9f705dd3d0 100644
--- a/leo_ast/expressions/binary/struct.BinaryExpression.html
+++ b/leo_ast/expressions/binary/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/call/struct.CallExpression.html b/leo_ast/expressions/call/struct.CallExpression.html
index 7f2b455757..41f0063520 100644
--- a/leo_ast/expressions/call/struct.CallExpression.html
+++ b/leo_ast/expressions/call/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions::call - Rust Struct leo_ast::expressions::call::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html
index 59684ab601..af6a90da32 100644
--- a/leo_ast/expressions/cast/struct.CastExpression.html
+++ b/leo_ast/expressions/cast/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions::cast - Rust Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
§Unary(UnaryExpression)
An unary expression.
§Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
source§fn clone(&self) -> Expression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
source§impl Eq for Expression
source§impl StructuralPartialEq for Expression
Auto Trait Implementations§
§impl Freeze for Expression
§impl RefUnwindSafe for Expression
§impl Send for Expression
§impl Sync for Expression
§impl Unpin for Expression
§impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.MemberAccess.html b/leo_ast/access/struct.MemberAccess.html
index fe898d71c0..dfe48d1de2 100644
--- a/leo_ast/access/struct.MemberAccess.html
+++ b/leo_ast/access/struct.MemberAccess.html
@@ -1,15 +1,15 @@
MemberAccess in leo_ast::access - Rust Struct leo_ast::access::MemberAccess
source · pub struct MemberAccess {
pub inner: Box<Expression>,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct member access expression inner.name
to some structure with named members.
Fields§
§inner: Box<Expression>
The inner struct that is being accessed.
§name: Identifier
The name of the struct member to access.
-§span: Span
The span covering all of inner.name
.
+§span: Span
The span covering all of inner.name
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for MemberAccess
source§fn clone(&self) -> MemberAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for MemberAccess
source§impl<'de> Deserialize<'de> for MemberAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§impl Display for MemberAccess
source§impl Node for MemberAccess
source§impl PartialEq for MemberAccess
source§fn eq(&self, other: &MemberAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MemberAccess
source§impl Eq for MemberAccess
source§impl StructuralPartialEq for MemberAccess
Auto Trait Implementations§
§impl Freeze for MemberAccess
§impl RefUnwindSafe for MemberAccess
§impl Send for MemberAccess
§impl Sync for MemberAccess
§impl Unpin for MemberAccess
§impl UnwindSafe for MemberAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.TupleAccess.html b/leo_ast/access/struct.TupleAccess.html
index cbffd52236..7dfaa88152 100644
--- a/leo_ast/access/struct.TupleAccess.html
+++ b/leo_ast/access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access - Rust Struct leo_ast::access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/tuple_access/struct.TupleAccess.html b/leo_ast/access/tuple_access/struct.TupleAccess.html
index 987ba8e475..e3d9797579 100644
--- a/leo_ast/access/tuple_access/struct.TupleAccess.html
+++ b/leo_ast/access/tuple_access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access::tuple_access - Rust Struct leo_ast::access::tuple_access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/common/identifier/struct.Identifier.html b/leo_ast/common/identifier/struct.Identifier.html
index ff891a31dd..98f9bce091 100644
--- a/leo_ast/common/identifier/struct.Identifier.html
+++ b/leo_ast/common/identifier/struct.Identifier.html
@@ -1,21 +1,21 @@
Identifier in leo_ast::common::identifier - Rust Struct leo_ast::common::identifier::Identifier
source · pub struct Identifier {
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An identifier in a program.
Attention - When adding or removing fields from this struct,
please remember to update its Serialize and Deserialize implementation
to reflect the new struct instantiation.
-Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
-§span: Span
A span locating where the identifier occurred in the source.
+Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
+§span: Span
A span locating where the identifier occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl Identifier
sourcepub fn new(name: Symbol, id: NodeID) -> Self
Constructs a new identifier with name
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.source§impl Hash for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
diff --git a/leo_ast/common/imported_modules/fn.deserialize.html b/leo_ast/common/imported_modules/fn.deserialize.html
index 9fb6d7b4aa..65f29f75d9 100644
--- a/leo_ast/common/imported_modules/fn.deserialize.html
+++ b/leo_ast/common/imported_modules/fn.deserialize.html
@@ -1,3 +1,3 @@
deserialize in leo_ast::common::imported_modules - Rust Function leo_ast::common::imported_modules::deserialize
source · pub fn deserialize<'de, D: Deserializer<'de>>(
deserializer: D,
-) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
+) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
diff --git a/leo_ast/common/imported_modules/fn.serialize.html b/leo_ast/common/imported_modules/fn.serialize.html
index 2fa175237f..21cc4f002b 100644
--- a/leo_ast/common/imported_modules/fn.serialize.html
+++ b/leo_ast/common/imported_modules/fn.serialize.html
@@ -1,4 +1,4 @@
serialize in leo_ast::common::imported_modules - Rust
\ No newline at end of file
diff --git a/leo_ast/common/location/struct.Location.html b/leo_ast/common/location/struct.Location.html
index 2cfac147e7..543aca84f6 100644
--- a/leo_ast/common/location/struct.Location.html
+++ b/leo_ast/common/location/struct.Location.html
@@ -1,12 +1,12 @@
Location in leo_ast::common::location - Rust pub struct Location {
- pub program: Option<Symbol>,
- pub name: Symbol,
-}
Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
+ pub program: Option<Symbol>,
+ pub name: Symbol,
+}Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<&CompositeType> for Location
source§fn from(composite: &CompositeType) -> Location
Converts to this type from the input type.source§impl PartialEq for Location
source§impl Eq for Location
source§impl StructuralPartialEq for Location
Auto Trait Implementations§
§impl Freeze for Location
§impl RefUnwindSafe for Location
§impl Send for Location
§impl Sync for Location
§impl Unpin for Location
§impl UnwindSafe for Location
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/common/node/trait.Node.html b/leo_ast/common/node/trait.Node.html
index 2af510d1d8..27e7284f7e 100644
--- a/leo_ast/common/node/trait.Node.html
+++ b/leo_ast/common/node/trait.Node.html
@@ -1,12 +1,12 @@
Node in leo_ast::common::node - Rust pub trait Node: Debug + Display + Clone + PartialEq + Eq + Serialize + DeserializeOwned {
// Required methods
- fn span(&self) -> Span;
- fn set_span(&mut self, span: Span);
+ fn span(&self) -> Span;
+ fn set_span(&mut self, span: Span);
fn id(&self) -> NodeID;
fn set_id(&mut self, id: NodeID);
}
Expand description
A node in the AST.
-Required Methods§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl Node for AccessExpression
source§impl Node for Expression
source§impl Node for Literal
source§impl Node for Statement
source§impl Node for ArrayAccess
source§impl Node for AssociatedConstant
source§impl Node for AssociatedFunction
source§impl Node for MemberAccess
source§impl Node for TupleAccess
source§impl Node for ArrayExpression
source§impl Node for BinaryExpression
source§impl Node for CallExpression
source§impl Node for CastExpression
source§impl Node for ErrExpression
source§impl Node for LocatorExpression
source§impl Node for StructExpression
source§impl Node for StructVariableInitializer
source§impl Node for TernaryExpression
source§impl Node for TupleExpression
source§impl Node for UnaryExpression
source§impl Node for UnitExpression
source§impl Node for Annotation
source§impl Node for Input
source§impl Node for Output
source§impl Node for Function
source§impl Node for Mapping
source§impl Node for AssertStatement
source§impl Node for AssignStatement
source§impl Node for Block
source§impl Node for ConditionalStatement
source§impl Node for ConsoleStatement
source§impl Node for ConstDeclaration
source§impl Node for DefinitionStatement
source§impl Node for ExpressionStatement
source§impl Node for IterationStatement
source§impl Node for ReturnStatement
source§impl Node for Member
source§impl Node for Composite
source§impl Node for FunctionStub
source§impl Node for Identifier
\ No newline at end of file
diff --git a/leo_ast/expressions/access/enum.AccessExpression.html b/leo_ast/expressions/access/enum.AccessExpression.html
index 82da863240..d4b7409cd7 100644
--- a/leo_ast/expressions/access/enum.AccessExpression.html
+++ b/leo_ast/expressions/access/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/array/struct.ArrayExpression.html b/leo_ast/expressions/array/struct.ArrayExpression.html
index 942e247033..9417f26ecf 100644
--- a/leo_ast/expressions/array/struct.ArrayExpression.html
+++ b/leo_ast/expressions/array/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions::array - Rust Struct leo_ast::expressions::array::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/binary/enum.BinaryOperation.html b/leo_ast/expressions/binary/enum.BinaryOperation.html
index ad20b0114b..b62052b910 100644
--- a/leo_ast/expressions/binary/enum.BinaryOperation.html
+++ b/leo_ast/expressions/binary/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/binary/struct.BinaryExpression.html b/leo_ast/expressions/binary/struct.BinaryExpression.html
index e016cf94e5..9f705dd3d0 100644
--- a/leo_ast/expressions/binary/struct.BinaryExpression.html
+++ b/leo_ast/expressions/binary/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/call/struct.CallExpression.html b/leo_ast/expressions/call/struct.CallExpression.html
index 7f2b455757..41f0063520 100644
--- a/leo_ast/expressions/call/struct.CallExpression.html
+++ b/leo_ast/expressions/call/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions::call - Rust Struct leo_ast::expressions::call::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html
index 59684ab601..af6a90da32 100644
--- a/leo_ast/expressions/cast/struct.CastExpression.html
+++ b/leo_ast/expressions/cast/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions::cast - Rust Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
§Unary(UnaryExpression)
An unary expression.
§Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
source§fn clone(&self) -> Expression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
source§impl Eq for Expression
source§impl StructuralPartialEq for Expression
Auto Trait Implementations§
§impl Freeze for Expression
§impl RefUnwindSafe for Expression
§impl Send for Expression
§impl Sync for Expression
§impl Unpin for Expression
§impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
Struct leo_ast::access::MemberAccess
source · pub struct MemberAccess {
pub inner: Box<Expression>,
pub name: Identifier,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct member access expression inner.name
to some structure with named members.
Fields§
§inner: Box<Expression>
The inner struct that is being accessed.
name: Identifier
The name of the struct member to access.
-span: Span
The span covering all of inner.name
.
span: Span
The span covering all of inner.name
.
id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for MemberAccess
impl Clone for MemberAccess
source§fn clone(&self) -> MemberAccess
fn clone(&self) -> MemberAccess
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MemberAccess
impl Debug for MemberAccess
source§impl<'de> Deserialize<'de> for MemberAccess
impl<'de> Deserialize<'de> for MemberAccess
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>,
source§impl Display for MemberAccess
impl Display for MemberAccess
source§impl Node for MemberAccess
impl Node for MemberAccess
source§impl PartialEq for MemberAccess
impl PartialEq for MemberAccess
source§impl Display for MemberAccess
impl Display for MemberAccess
source§impl Node for MemberAccess
impl Node for MemberAccess
source§impl PartialEq for MemberAccess
impl PartialEq for MemberAccess
source§fn eq(&self, other: &MemberAccess) -> bool
fn eq(&self, other: &MemberAccess) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MemberAccess
impl Serialize for MemberAccess
impl Eq for MemberAccess
impl StructuralPartialEq for MemberAccess
Auto Trait Implementations§
impl Freeze for MemberAccess
impl RefUnwindSafe for MemberAccess
impl Send for MemberAccess
impl Sync for MemberAccess
impl Unpin for MemberAccess
impl UnwindSafe for MemberAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.TupleAccess.html b/leo_ast/access/struct.TupleAccess.html
index cbffd52236..7dfaa88152 100644
--- a/leo_ast/access/struct.TupleAccess.html
+++ b/leo_ast/access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access - Rust Struct leo_ast::access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/tuple_access/struct.TupleAccess.html b/leo_ast/access/tuple_access/struct.TupleAccess.html
index 987ba8e475..e3d9797579 100644
--- a/leo_ast/access/tuple_access/struct.TupleAccess.html
+++ b/leo_ast/access/tuple_access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access::tuple_access - Rust Struct leo_ast::access::tuple_access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/common/identifier/struct.Identifier.html b/leo_ast/common/identifier/struct.Identifier.html
index ff891a31dd..98f9bce091 100644
--- a/leo_ast/common/identifier/struct.Identifier.html
+++ b/leo_ast/common/identifier/struct.Identifier.html
@@ -1,21 +1,21 @@
Identifier in leo_ast::common::identifier - Rust Struct leo_ast::common::identifier::Identifier
source · pub struct Identifier {
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An identifier in a program.
Attention - When adding or removing fields from this struct,
please remember to update its Serialize and Deserialize implementation
to reflect the new struct instantiation.
-Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
-§span: Span
A span locating where the identifier occurred in the source.
+Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
+§span: Span
A span locating where the identifier occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl Identifier
sourcepub fn new(name: Symbol, id: NodeID) -> Self
Constructs a new identifier with name
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.source§impl Hash for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
diff --git a/leo_ast/common/imported_modules/fn.deserialize.html b/leo_ast/common/imported_modules/fn.deserialize.html
index 9fb6d7b4aa..65f29f75d9 100644
--- a/leo_ast/common/imported_modules/fn.deserialize.html
+++ b/leo_ast/common/imported_modules/fn.deserialize.html
@@ -1,3 +1,3 @@
deserialize in leo_ast::common::imported_modules - Rust Function leo_ast::common::imported_modules::deserialize
source · pub fn deserialize<'de, D: Deserializer<'de>>(
deserializer: D,
-) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
+) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
diff --git a/leo_ast/common/imported_modules/fn.serialize.html b/leo_ast/common/imported_modules/fn.serialize.html
index 2fa175237f..21cc4f002b 100644
--- a/leo_ast/common/imported_modules/fn.serialize.html
+++ b/leo_ast/common/imported_modules/fn.serialize.html
@@ -1,4 +1,4 @@
serialize in leo_ast::common::imported_modules - Rust
\ No newline at end of file
diff --git a/leo_ast/common/location/struct.Location.html b/leo_ast/common/location/struct.Location.html
index 2cfac147e7..543aca84f6 100644
--- a/leo_ast/common/location/struct.Location.html
+++ b/leo_ast/common/location/struct.Location.html
@@ -1,12 +1,12 @@
Location in leo_ast::common::location - Rust pub struct Location {
- pub program: Option<Symbol>,
- pub name: Symbol,
-}
Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
+ pub program: Option<Symbol>,
+ pub name: Symbol,
+}Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<&CompositeType> for Location
source§fn from(composite: &CompositeType) -> Location
Converts to this type from the input type.source§impl PartialEq for Location
source§impl Eq for Location
source§impl StructuralPartialEq for Location
Auto Trait Implementations§
§impl Freeze for Location
§impl RefUnwindSafe for Location
§impl Send for Location
§impl Sync for Location
§impl Unpin for Location
§impl UnwindSafe for Location
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/common/node/trait.Node.html b/leo_ast/common/node/trait.Node.html
index 2af510d1d8..27e7284f7e 100644
--- a/leo_ast/common/node/trait.Node.html
+++ b/leo_ast/common/node/trait.Node.html
@@ -1,12 +1,12 @@
Node in leo_ast::common::node - Rust pub trait Node: Debug + Display + Clone + PartialEq + Eq + Serialize + DeserializeOwned {
// Required methods
- fn span(&self) -> Span;
- fn set_span(&mut self, span: Span);
+ fn span(&self) -> Span;
+ fn set_span(&mut self, span: Span);
fn id(&self) -> NodeID;
fn set_id(&mut self, id: NodeID);
}
Expand description
A node in the AST.
-Required Methods§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl Node for AccessExpression
source§impl Node for Expression
source§impl Node for Literal
source§impl Node for Statement
source§impl Node for ArrayAccess
source§impl Node for AssociatedConstant
source§impl Node for AssociatedFunction
source§impl Node for MemberAccess
source§impl Node for TupleAccess
source§impl Node for ArrayExpression
source§impl Node for BinaryExpression
source§impl Node for CallExpression
source§impl Node for CastExpression
source§impl Node for ErrExpression
source§impl Node for LocatorExpression
source§impl Node for StructExpression
source§impl Node for StructVariableInitializer
source§impl Node for TernaryExpression
source§impl Node for TupleExpression
source§impl Node for UnaryExpression
source§impl Node for UnitExpression
source§impl Node for Annotation
source§impl Node for Input
source§impl Node for Output
source§impl Node for Function
source§impl Node for Mapping
source§impl Node for AssertStatement
source§impl Node for AssignStatement
source§impl Node for Block
source§impl Node for ConditionalStatement
source§impl Node for ConsoleStatement
source§impl Node for ConstDeclaration
source§impl Node for DefinitionStatement
source§impl Node for ExpressionStatement
source§impl Node for IterationStatement
source§impl Node for ReturnStatement
source§impl Node for Member
source§impl Node for Composite
source§impl Node for FunctionStub
source§impl Node for Identifier
\ No newline at end of file
diff --git a/leo_ast/expressions/access/enum.AccessExpression.html b/leo_ast/expressions/access/enum.AccessExpression.html
index 82da863240..d4b7409cd7 100644
--- a/leo_ast/expressions/access/enum.AccessExpression.html
+++ b/leo_ast/expressions/access/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/array/struct.ArrayExpression.html b/leo_ast/expressions/array/struct.ArrayExpression.html
index 942e247033..9417f26ecf 100644
--- a/leo_ast/expressions/array/struct.ArrayExpression.html
+++ b/leo_ast/expressions/array/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions::array - Rust Struct leo_ast::expressions::array::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/binary/enum.BinaryOperation.html b/leo_ast/expressions/binary/enum.BinaryOperation.html
index ad20b0114b..b62052b910 100644
--- a/leo_ast/expressions/binary/enum.BinaryOperation.html
+++ b/leo_ast/expressions/binary/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/binary/struct.BinaryExpression.html b/leo_ast/expressions/binary/struct.BinaryExpression.html
index e016cf94e5..9f705dd3d0 100644
--- a/leo_ast/expressions/binary/struct.BinaryExpression.html
+++ b/leo_ast/expressions/binary/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/call/struct.CallExpression.html b/leo_ast/expressions/call/struct.CallExpression.html
index 7f2b455757..41f0063520 100644
--- a/leo_ast/expressions/call/struct.CallExpression.html
+++ b/leo_ast/expressions/call/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions::call - Rust Struct leo_ast::expressions::call::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html
index 59684ab601..af6a90da32 100644
--- a/leo_ast/expressions/cast/struct.CastExpression.html
+++ b/leo_ast/expressions/cast/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions::cast - Rust Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
§Unary(UnaryExpression)
An unary expression.
§Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
source§fn clone(&self) -> Expression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
source§impl Eq for Expression
source§impl StructuralPartialEq for Expression
Auto Trait Implementations§
§impl Freeze for Expression
§impl RefUnwindSafe for Expression
§impl Send for Expression
§impl Sync for Expression
§impl Unpin for Expression
§impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
impl<T> Any for Twhere
diff --git a/leo_ast/access/struct.TupleAccess.html b/leo_ast/access/struct.TupleAccess.html
index cbffd52236..7dfaa88152 100644
--- a/leo_ast/access/struct.TupleAccess.html
+++ b/leo_ast/access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access - Rust Struct leo_ast::access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/tuple_access/struct.TupleAccess.html b/leo_ast/access/tuple_access/struct.TupleAccess.html
index 987ba8e475..e3d9797579 100644
--- a/leo_ast/access/tuple_access/struct.TupleAccess.html
+++ b/leo_ast/access/tuple_access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access::tuple_access - Rust Struct leo_ast::access::tuple_access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/common/identifier/struct.Identifier.html b/leo_ast/common/identifier/struct.Identifier.html
index ff891a31dd..98f9bce091 100644
--- a/leo_ast/common/identifier/struct.Identifier.html
+++ b/leo_ast/common/identifier/struct.Identifier.html
@@ -1,21 +1,21 @@
Identifier in leo_ast::common::identifier - Rust Struct leo_ast::common::identifier::Identifier
source · pub struct Identifier {
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An identifier in a program.
Attention - When adding or removing fields from this struct,
please remember to update its Serialize and Deserialize implementation
to reflect the new struct instantiation.
-Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
-§span: Span
A span locating where the identifier occurred in the source.
+Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
+§span: Span
A span locating where the identifier occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl Identifier
sourcepub fn new(name: Symbol, id: NodeID) -> Self
Constructs a new identifier with name
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.source§impl Hash for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
diff --git a/leo_ast/common/imported_modules/fn.deserialize.html b/leo_ast/common/imported_modules/fn.deserialize.html
index 9fb6d7b4aa..65f29f75d9 100644
--- a/leo_ast/common/imported_modules/fn.deserialize.html
+++ b/leo_ast/common/imported_modules/fn.deserialize.html
@@ -1,3 +1,3 @@
deserialize in leo_ast::common::imported_modules - Rust Function leo_ast::common::imported_modules::deserialize
source · pub fn deserialize<'de, D: Deserializer<'de>>(
deserializer: D,
-) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
+) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
diff --git a/leo_ast/common/imported_modules/fn.serialize.html b/leo_ast/common/imported_modules/fn.serialize.html
index 2fa175237f..21cc4f002b 100644
--- a/leo_ast/common/imported_modules/fn.serialize.html
+++ b/leo_ast/common/imported_modules/fn.serialize.html
@@ -1,4 +1,4 @@
serialize in leo_ast::common::imported_modules - Rust
\ No newline at end of file
diff --git a/leo_ast/common/location/struct.Location.html b/leo_ast/common/location/struct.Location.html
index 2cfac147e7..543aca84f6 100644
--- a/leo_ast/common/location/struct.Location.html
+++ b/leo_ast/common/location/struct.Location.html
@@ -1,12 +1,12 @@
Location in leo_ast::common::location - Rust pub struct Location {
- pub program: Option<Symbol>,
- pub name: Symbol,
-}
Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
+ pub program: Option<Symbol>,
+ pub name: Symbol,
+}Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<&CompositeType> for Location
source§fn from(composite: &CompositeType) -> Location
Converts to this type from the input type.source§impl PartialEq for Location
source§impl Eq for Location
source§impl StructuralPartialEq for Location
Auto Trait Implementations§
§impl Freeze for Location
§impl RefUnwindSafe for Location
§impl Send for Location
§impl Sync for Location
§impl Unpin for Location
§impl UnwindSafe for Location
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/common/node/trait.Node.html b/leo_ast/common/node/trait.Node.html
index 2af510d1d8..27e7284f7e 100644
--- a/leo_ast/common/node/trait.Node.html
+++ b/leo_ast/common/node/trait.Node.html
@@ -1,12 +1,12 @@
Node in leo_ast::common::node - Rust pub trait Node: Debug + Display + Clone + PartialEq + Eq + Serialize + DeserializeOwned {
// Required methods
- fn span(&self) -> Span;
- fn set_span(&mut self, span: Span);
+ fn span(&self) -> Span;
+ fn set_span(&mut self, span: Span);
fn id(&self) -> NodeID;
fn set_id(&mut self, id: NodeID);
}
Expand description
A node in the AST.
-Required Methods§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl Node for AccessExpression
source§impl Node for Expression
source§impl Node for Literal
source§impl Node for Statement
source§impl Node for ArrayAccess
source§impl Node for AssociatedConstant
source§impl Node for AssociatedFunction
source§impl Node for MemberAccess
source§impl Node for TupleAccess
source§impl Node for ArrayExpression
source§impl Node for BinaryExpression
source§impl Node for CallExpression
source§impl Node for CastExpression
source§impl Node for ErrExpression
source§impl Node for LocatorExpression
source§impl Node for StructExpression
source§impl Node for StructVariableInitializer
source§impl Node for TernaryExpression
source§impl Node for TupleExpression
source§impl Node for UnaryExpression
source§impl Node for UnitExpression
source§impl Node for Annotation
source§impl Node for Input
source§impl Node for Output
source§impl Node for Function
source§impl Node for Mapping
source§impl Node for AssertStatement
source§impl Node for AssignStatement
source§impl Node for Block
source§impl Node for ConditionalStatement
source§impl Node for ConsoleStatement
source§impl Node for ConstDeclaration
source§impl Node for DefinitionStatement
source§impl Node for ExpressionStatement
source§impl Node for IterationStatement
source§impl Node for ReturnStatement
source§impl Node for Member
source§impl Node for Composite
source§impl Node for FunctionStub
source§impl Node for Identifier
\ No newline at end of file
diff --git a/leo_ast/expressions/access/enum.AccessExpression.html b/leo_ast/expressions/access/enum.AccessExpression.html
index 82da863240..d4b7409cd7 100644
--- a/leo_ast/expressions/access/enum.AccessExpression.html
+++ b/leo_ast/expressions/access/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/array/struct.ArrayExpression.html b/leo_ast/expressions/array/struct.ArrayExpression.html
index 942e247033..9417f26ecf 100644
--- a/leo_ast/expressions/array/struct.ArrayExpression.html
+++ b/leo_ast/expressions/array/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions::array - Rust Struct leo_ast::expressions::array::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/binary/enum.BinaryOperation.html b/leo_ast/expressions/binary/enum.BinaryOperation.html
index ad20b0114b..b62052b910 100644
--- a/leo_ast/expressions/binary/enum.BinaryOperation.html
+++ b/leo_ast/expressions/binary/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/binary/struct.BinaryExpression.html b/leo_ast/expressions/binary/struct.BinaryExpression.html
index e016cf94e5..9f705dd3d0 100644
--- a/leo_ast/expressions/binary/struct.BinaryExpression.html
+++ b/leo_ast/expressions/binary/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/call/struct.CallExpression.html b/leo_ast/expressions/call/struct.CallExpression.html
index 7f2b455757..41f0063520 100644
--- a/leo_ast/expressions/call/struct.CallExpression.html
+++ b/leo_ast/expressions/call/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions::call - Rust Struct leo_ast::expressions::call::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html
index 59684ab601..af6a90da32 100644
--- a/leo_ast/expressions/cast/struct.CastExpression.html
+++ b/leo_ast/expressions/cast/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions::cast - Rust Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
§Unary(UnaryExpression)
An unary expression.
§Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
source§fn clone(&self) -> Expression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
source§impl Eq for Expression
source§impl StructuralPartialEq for Expression
Auto Trait Implementations§
§impl Freeze for Expression
§impl RefUnwindSafe for Expression
§impl Send for Expression
§impl Sync for Expression
§impl Unpin for Expression
§impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
Struct leo_ast::access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
span: Span
The span for the entire expression tuple.index
.
span: Span
The span for the entire expression tuple.index
.
id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
fn clone(&self) -> TupleAccess
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TupleAccess
impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
impl<'de> Deserialize<'de> for TupleAccess
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>,
source§impl Display for TupleAccess
impl Display for TupleAccess
source§impl Node for TupleAccess
impl Node for TupleAccess
source§impl PartialEq for TupleAccess
impl PartialEq for TupleAccess
source§impl Display for TupleAccess
impl Display for TupleAccess
source§impl Node for TupleAccess
impl Node for TupleAccess
source§impl PartialEq for TupleAccess
impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
fn eq(&self, other: &TupleAccess) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
impl Serialize for TupleAccess
impl Eq for TupleAccess
impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
impl Freeze for TupleAccess
impl RefUnwindSafe for TupleAccess
impl Send for TupleAccess
impl Sync for TupleAccess
impl Unpin for TupleAccess
impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/access/tuple_access/struct.TupleAccess.html b/leo_ast/access/tuple_access/struct.TupleAccess.html
index 987ba8e475..e3d9797579 100644
--- a/leo_ast/access/tuple_access/struct.TupleAccess.html
+++ b/leo_ast/access/tuple_access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access::tuple_access - Rust Struct leo_ast::access::tuple_access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/common/identifier/struct.Identifier.html b/leo_ast/common/identifier/struct.Identifier.html
index ff891a31dd..98f9bce091 100644
--- a/leo_ast/common/identifier/struct.Identifier.html
+++ b/leo_ast/common/identifier/struct.Identifier.html
@@ -1,21 +1,21 @@
Identifier in leo_ast::common::identifier - Rust Struct leo_ast::common::identifier::Identifier
source · pub struct Identifier {
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An identifier in a program.
Attention - When adding or removing fields from this struct,
please remember to update its Serialize and Deserialize implementation
to reflect the new struct instantiation.
-Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
-§span: Span
A span locating where the identifier occurred in the source.
+Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
+§span: Span
A span locating where the identifier occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl Identifier
sourcepub fn new(name: Symbol, id: NodeID) -> Self
Constructs a new identifier with name
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.source§impl Hash for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
diff --git a/leo_ast/common/imported_modules/fn.deserialize.html b/leo_ast/common/imported_modules/fn.deserialize.html
index 9fb6d7b4aa..65f29f75d9 100644
--- a/leo_ast/common/imported_modules/fn.deserialize.html
+++ b/leo_ast/common/imported_modules/fn.deserialize.html
@@ -1,3 +1,3 @@
deserialize in leo_ast::common::imported_modules - Rust Function leo_ast::common::imported_modules::deserialize
source · pub fn deserialize<'de, D: Deserializer<'de>>(
deserializer: D,
-) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
+) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
diff --git a/leo_ast/common/imported_modules/fn.serialize.html b/leo_ast/common/imported_modules/fn.serialize.html
index 2fa175237f..21cc4f002b 100644
--- a/leo_ast/common/imported_modules/fn.serialize.html
+++ b/leo_ast/common/imported_modules/fn.serialize.html
@@ -1,4 +1,4 @@
serialize in leo_ast::common::imported_modules - Rust
\ No newline at end of file
diff --git a/leo_ast/common/location/struct.Location.html b/leo_ast/common/location/struct.Location.html
index 2cfac147e7..543aca84f6 100644
--- a/leo_ast/common/location/struct.Location.html
+++ b/leo_ast/common/location/struct.Location.html
@@ -1,12 +1,12 @@
Location in leo_ast::common::location - Rust pub struct Location {
- pub program: Option<Symbol>,
- pub name: Symbol,
-}
Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
+ pub program: Option<Symbol>,
+ pub name: Symbol,
+}Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<&CompositeType> for Location
source§fn from(composite: &CompositeType) -> Location
Converts to this type from the input type.source§impl PartialEq for Location
source§impl Eq for Location
source§impl StructuralPartialEq for Location
Auto Trait Implementations§
§impl Freeze for Location
§impl RefUnwindSafe for Location
§impl Send for Location
§impl Sync for Location
§impl Unpin for Location
§impl UnwindSafe for Location
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/common/node/trait.Node.html b/leo_ast/common/node/trait.Node.html
index 2af510d1d8..27e7284f7e 100644
--- a/leo_ast/common/node/trait.Node.html
+++ b/leo_ast/common/node/trait.Node.html
@@ -1,12 +1,12 @@
Node in leo_ast::common::node - Rust pub trait Node: Debug + Display + Clone + PartialEq + Eq + Serialize + DeserializeOwned {
// Required methods
- fn span(&self) -> Span;
- fn set_span(&mut self, span: Span);
+ fn span(&self) -> Span;
+ fn set_span(&mut self, span: Span);
fn id(&self) -> NodeID;
fn set_id(&mut self, id: NodeID);
}
Expand description
A node in the AST.
-Required Methods§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl Node for AccessExpression
source§impl Node for Expression
source§impl Node for Literal
source§impl Node for Statement
source§impl Node for ArrayAccess
source§impl Node for AssociatedConstant
source§impl Node for AssociatedFunction
source§impl Node for MemberAccess
source§impl Node for TupleAccess
source§impl Node for ArrayExpression
source§impl Node for BinaryExpression
source§impl Node for CallExpression
source§impl Node for CastExpression
source§impl Node for ErrExpression
source§impl Node for LocatorExpression
source§impl Node for StructExpression
source§impl Node for StructVariableInitializer
source§impl Node for TernaryExpression
source§impl Node for TupleExpression
source§impl Node for UnaryExpression
source§impl Node for UnitExpression
source§impl Node for Annotation
source§impl Node for Input
source§impl Node for Output
source§impl Node for Function
source§impl Node for Mapping
source§impl Node for AssertStatement
source§impl Node for AssignStatement
source§impl Node for Block
source§impl Node for ConditionalStatement
source§impl Node for ConsoleStatement
source§impl Node for ConstDeclaration
source§impl Node for DefinitionStatement
source§impl Node for ExpressionStatement
source§impl Node for IterationStatement
source§impl Node for ReturnStatement
source§impl Node for Member
source§impl Node for Composite
source§impl Node for FunctionStub
source§impl Node for Identifier
\ No newline at end of file
diff --git a/leo_ast/expressions/access/enum.AccessExpression.html b/leo_ast/expressions/access/enum.AccessExpression.html
index 82da863240..d4b7409cd7 100644
--- a/leo_ast/expressions/access/enum.AccessExpression.html
+++ b/leo_ast/expressions/access/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/array/struct.ArrayExpression.html b/leo_ast/expressions/array/struct.ArrayExpression.html
index 942e247033..9417f26ecf 100644
--- a/leo_ast/expressions/array/struct.ArrayExpression.html
+++ b/leo_ast/expressions/array/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions::array - Rust Struct leo_ast::expressions::array::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/binary/enum.BinaryOperation.html b/leo_ast/expressions/binary/enum.BinaryOperation.html
index ad20b0114b..b62052b910 100644
--- a/leo_ast/expressions/binary/enum.BinaryOperation.html
+++ b/leo_ast/expressions/binary/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/binary/struct.BinaryExpression.html b/leo_ast/expressions/binary/struct.BinaryExpression.html
index e016cf94e5..9f705dd3d0 100644
--- a/leo_ast/expressions/binary/struct.BinaryExpression.html
+++ b/leo_ast/expressions/binary/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/call/struct.CallExpression.html b/leo_ast/expressions/call/struct.CallExpression.html
index 7f2b455757..41f0063520 100644
--- a/leo_ast/expressions/call/struct.CallExpression.html
+++ b/leo_ast/expressions/call/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions::call - Rust Struct leo_ast::expressions::call::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html
index 59684ab601..af6a90da32 100644
--- a/leo_ast/expressions/cast/struct.CastExpression.html
+++ b/leo_ast/expressions/cast/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions::cast - Rust Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
§Unary(UnaryExpression)
An unary expression.
§Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
source§fn clone(&self) -> Expression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
source§impl Eq for Expression
source§impl StructuralPartialEq for Expression
Auto Trait Implementations§
§impl Freeze for Expression
§impl RefUnwindSafe for Expression
§impl Send for Expression
§impl Sync for Expression
§impl Unpin for Expression
§impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
impl<T> Any for Twhere
diff --git a/leo_ast/access/tuple_access/struct.TupleAccess.html b/leo_ast/access/tuple_access/struct.TupleAccess.html
index 987ba8e475..e3d9797579 100644
--- a/leo_ast/access/tuple_access/struct.TupleAccess.html
+++ b/leo_ast/access/tuple_access/struct.TupleAccess.html
@@ -1,15 +1,15 @@
TupleAccess in leo_ast::access::tuple_access - Rust Struct leo_ast::access::tuple_access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
§index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
-§span: Span
The span for the entire expression tuple.index
.
+§span: Span
The span for the entire expression tuple.index
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§impl Display for TupleAccess
source§impl Node for TupleAccess
source§impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
source§impl Eq for TupleAccess
source§impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
§impl Freeze for TupleAccess
§impl RefUnwindSafe for TupleAccess
§impl Send for TupleAccess
§impl Sync for TupleAccess
§impl Unpin for TupleAccess
§impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/common/identifier/struct.Identifier.html b/leo_ast/common/identifier/struct.Identifier.html
index ff891a31dd..98f9bce091 100644
--- a/leo_ast/common/identifier/struct.Identifier.html
+++ b/leo_ast/common/identifier/struct.Identifier.html
@@ -1,21 +1,21 @@
Identifier in leo_ast::common::identifier - Rust Struct leo_ast::common::identifier::Identifier
source · pub struct Identifier {
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An identifier in a program.
Attention - When adding or removing fields from this struct,
please remember to update its Serialize and Deserialize implementation
to reflect the new struct instantiation.
-Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
-§span: Span
A span locating where the identifier occurred in the source.
+Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
+§span: Span
A span locating where the identifier occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl Identifier
sourcepub fn new(name: Symbol, id: NodeID) -> Self
Constructs a new identifier with name
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.source§impl Hash for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
diff --git a/leo_ast/common/imported_modules/fn.deserialize.html b/leo_ast/common/imported_modules/fn.deserialize.html
index 9fb6d7b4aa..65f29f75d9 100644
--- a/leo_ast/common/imported_modules/fn.deserialize.html
+++ b/leo_ast/common/imported_modules/fn.deserialize.html
@@ -1,3 +1,3 @@
deserialize in leo_ast::common::imported_modules - Rust Function leo_ast::common::imported_modules::deserialize
source · pub fn deserialize<'de, D: Deserializer<'de>>(
deserializer: D,
-) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
+) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
diff --git a/leo_ast/common/imported_modules/fn.serialize.html b/leo_ast/common/imported_modules/fn.serialize.html
index 2fa175237f..21cc4f002b 100644
--- a/leo_ast/common/imported_modules/fn.serialize.html
+++ b/leo_ast/common/imported_modules/fn.serialize.html
@@ -1,4 +1,4 @@
serialize in leo_ast::common::imported_modules - Rust
\ No newline at end of file
diff --git a/leo_ast/common/location/struct.Location.html b/leo_ast/common/location/struct.Location.html
index 2cfac147e7..543aca84f6 100644
--- a/leo_ast/common/location/struct.Location.html
+++ b/leo_ast/common/location/struct.Location.html
@@ -1,12 +1,12 @@
Location in leo_ast::common::location - Rust pub struct Location {
- pub program: Option<Symbol>,
- pub name: Symbol,
-}
Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
+ pub program: Option<Symbol>,
+ pub name: Symbol,
+}Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<&CompositeType> for Location
source§fn from(composite: &CompositeType) -> Location
Converts to this type from the input type.source§impl PartialEq for Location
source§impl Eq for Location
source§impl StructuralPartialEq for Location
Auto Trait Implementations§
§impl Freeze for Location
§impl RefUnwindSafe for Location
§impl Send for Location
§impl Sync for Location
§impl Unpin for Location
§impl UnwindSafe for Location
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/common/node/trait.Node.html b/leo_ast/common/node/trait.Node.html
index 2af510d1d8..27e7284f7e 100644
--- a/leo_ast/common/node/trait.Node.html
+++ b/leo_ast/common/node/trait.Node.html
@@ -1,12 +1,12 @@
Node in leo_ast::common::node - Rust pub trait Node: Debug + Display + Clone + PartialEq + Eq + Serialize + DeserializeOwned {
// Required methods
- fn span(&self) -> Span;
- fn set_span(&mut self, span: Span);
+ fn span(&self) -> Span;
+ fn set_span(&mut self, span: Span);
fn id(&self) -> NodeID;
fn set_id(&mut self, id: NodeID);
}
Expand description
A node in the AST.
-Required Methods§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl Node for AccessExpression
source§impl Node for Expression
source§impl Node for Literal
source§impl Node for Statement
source§impl Node for ArrayAccess
source§impl Node for AssociatedConstant
source§impl Node for AssociatedFunction
source§impl Node for MemberAccess
source§impl Node for TupleAccess
source§impl Node for ArrayExpression
source§impl Node for BinaryExpression
source§impl Node for CallExpression
source§impl Node for CastExpression
source§impl Node for ErrExpression
source§impl Node for LocatorExpression
source§impl Node for StructExpression
source§impl Node for StructVariableInitializer
source§impl Node for TernaryExpression
source§impl Node for TupleExpression
source§impl Node for UnaryExpression
source§impl Node for UnitExpression
source§impl Node for Annotation
source§impl Node for Input
source§impl Node for Output
source§impl Node for Function
source§impl Node for Mapping
source§impl Node for AssertStatement
source§impl Node for AssignStatement
source§impl Node for Block
source§impl Node for ConditionalStatement
source§impl Node for ConsoleStatement
source§impl Node for ConstDeclaration
source§impl Node for DefinitionStatement
source§impl Node for ExpressionStatement
source§impl Node for IterationStatement
source§impl Node for ReturnStatement
source§impl Node for Member
source§impl Node for Composite
source§impl Node for FunctionStub
source§impl Node for Identifier
\ No newline at end of file
diff --git a/leo_ast/expressions/access/enum.AccessExpression.html b/leo_ast/expressions/access/enum.AccessExpression.html
index 82da863240..d4b7409cd7 100644
--- a/leo_ast/expressions/access/enum.AccessExpression.html
+++ b/leo_ast/expressions/access/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/array/struct.ArrayExpression.html b/leo_ast/expressions/array/struct.ArrayExpression.html
index 942e247033..9417f26ecf 100644
--- a/leo_ast/expressions/array/struct.ArrayExpression.html
+++ b/leo_ast/expressions/array/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions::array - Rust Struct leo_ast::expressions::array::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/binary/enum.BinaryOperation.html b/leo_ast/expressions/binary/enum.BinaryOperation.html
index ad20b0114b..b62052b910 100644
--- a/leo_ast/expressions/binary/enum.BinaryOperation.html
+++ b/leo_ast/expressions/binary/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/binary/struct.BinaryExpression.html b/leo_ast/expressions/binary/struct.BinaryExpression.html
index e016cf94e5..9f705dd3d0 100644
--- a/leo_ast/expressions/binary/struct.BinaryExpression.html
+++ b/leo_ast/expressions/binary/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/call/struct.CallExpression.html b/leo_ast/expressions/call/struct.CallExpression.html
index 7f2b455757..41f0063520 100644
--- a/leo_ast/expressions/call/struct.CallExpression.html
+++ b/leo_ast/expressions/call/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions::call - Rust Struct leo_ast::expressions::call::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html
index 59684ab601..af6a90da32 100644
--- a/leo_ast/expressions/cast/struct.CastExpression.html
+++ b/leo_ast/expressions/cast/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions::cast - Rust Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
§Unary(UnaryExpression)
An unary expression.
§Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
source§fn clone(&self) -> Expression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
source§impl Eq for Expression
source§impl StructuralPartialEq for Expression
Auto Trait Implementations§
§impl Freeze for Expression
§impl RefUnwindSafe for Expression
§impl Send for Expression
§impl Sync for Expression
§impl Unpin for Expression
§impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
Struct leo_ast::access::tuple_access::TupleAccess
source · pub struct TupleAccess {
pub tuple: Box<Expression>,
pub index: NonNegativeNumber,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A tuple access expression, e.g., tuple.index
.
Fields§
§tuple: Box<Expression>
An expression evaluating to some tuple type, e.g., (5, 2)
.
index: NonNegativeNumber
The index to access in the tuple expression. E.g., 0
for (5, 2)
would yield 5
.
span: Span
The span for the entire expression tuple.index
.
span: Span
The span for the entire expression tuple.index
.
id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for TupleAccess
impl Clone for TupleAccess
source§fn clone(&self) -> TupleAccess
fn clone(&self) -> TupleAccess
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TupleAccess
impl Debug for TupleAccess
source§impl<'de> Deserialize<'de> for TupleAccess
impl<'de> Deserialize<'de> for TupleAccess
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>,
source§impl Display for TupleAccess
impl Display for TupleAccess
source§impl Node for TupleAccess
impl Node for TupleAccess
source§impl PartialEq for TupleAccess
impl PartialEq for TupleAccess
source§impl Display for TupleAccess
impl Display for TupleAccess
source§impl Node for TupleAccess
impl Node for TupleAccess
source§impl PartialEq for TupleAccess
impl PartialEq for TupleAccess
source§fn eq(&self, other: &TupleAccess) -> bool
fn eq(&self, other: &TupleAccess) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TupleAccess
impl Serialize for TupleAccess
impl Eq for TupleAccess
impl StructuralPartialEq for TupleAccess
Auto Trait Implementations§
impl Freeze for TupleAccess
impl RefUnwindSafe for TupleAccess
impl Send for TupleAccess
impl Sync for TupleAccess
impl Unpin for TupleAccess
impl UnwindSafe for TupleAccess
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/common/identifier/struct.Identifier.html b/leo_ast/common/identifier/struct.Identifier.html
index ff891a31dd..98f9bce091 100644
--- a/leo_ast/common/identifier/struct.Identifier.html
+++ b/leo_ast/common/identifier/struct.Identifier.html
@@ -1,21 +1,21 @@
Identifier in leo_ast::common::identifier - Rust Struct leo_ast::common::identifier::Identifier
source · pub struct Identifier {
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An identifier in a program.
Attention - When adding or removing fields from this struct,
please remember to update its Serialize and Deserialize implementation
to reflect the new struct instantiation.
-Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
-§span: Span
A span locating where the identifier occurred in the source.
+Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
+§span: Span
A span locating where the identifier occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl Identifier
sourcepub fn new(name: Symbol, id: NodeID) -> Self
Constructs a new identifier with name
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.source§impl Hash for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
diff --git a/leo_ast/common/imported_modules/fn.deserialize.html b/leo_ast/common/imported_modules/fn.deserialize.html
index 9fb6d7b4aa..65f29f75d9 100644
--- a/leo_ast/common/imported_modules/fn.deserialize.html
+++ b/leo_ast/common/imported_modules/fn.deserialize.html
@@ -1,3 +1,3 @@
deserialize in leo_ast::common::imported_modules - Rust Function leo_ast::common::imported_modules::deserialize
source · pub fn deserialize<'de, D: Deserializer<'de>>(
deserializer: D,
-) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
+) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
diff --git a/leo_ast/common/imported_modules/fn.serialize.html b/leo_ast/common/imported_modules/fn.serialize.html
index 2fa175237f..21cc4f002b 100644
--- a/leo_ast/common/imported_modules/fn.serialize.html
+++ b/leo_ast/common/imported_modules/fn.serialize.html
@@ -1,4 +1,4 @@
serialize in leo_ast::common::imported_modules - Rust
\ No newline at end of file
diff --git a/leo_ast/common/location/struct.Location.html b/leo_ast/common/location/struct.Location.html
index 2cfac147e7..543aca84f6 100644
--- a/leo_ast/common/location/struct.Location.html
+++ b/leo_ast/common/location/struct.Location.html
@@ -1,12 +1,12 @@
Location in leo_ast::common::location - Rust pub struct Location {
- pub program: Option<Symbol>,
- pub name: Symbol,
-}
Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
+ pub program: Option<Symbol>,
+ pub name: Symbol,
+}Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<&CompositeType> for Location
source§fn from(composite: &CompositeType) -> Location
Converts to this type from the input type.source§impl PartialEq for Location
source§impl Eq for Location
source§impl StructuralPartialEq for Location
Auto Trait Implementations§
§impl Freeze for Location
§impl RefUnwindSafe for Location
§impl Send for Location
§impl Sync for Location
§impl Unpin for Location
§impl UnwindSafe for Location
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/common/node/trait.Node.html b/leo_ast/common/node/trait.Node.html
index 2af510d1d8..27e7284f7e 100644
--- a/leo_ast/common/node/trait.Node.html
+++ b/leo_ast/common/node/trait.Node.html
@@ -1,12 +1,12 @@
Node in leo_ast::common::node - Rust pub trait Node: Debug + Display + Clone + PartialEq + Eq + Serialize + DeserializeOwned {
// Required methods
- fn span(&self) -> Span;
- fn set_span(&mut self, span: Span);
+ fn span(&self) -> Span;
+ fn set_span(&mut self, span: Span);
fn id(&self) -> NodeID;
fn set_id(&mut self, id: NodeID);
}
Expand description
A node in the AST.
-Required Methods§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl Node for AccessExpression
source§impl Node for Expression
source§impl Node for Literal
source§impl Node for Statement
source§impl Node for ArrayAccess
source§impl Node for AssociatedConstant
source§impl Node for AssociatedFunction
source§impl Node for MemberAccess
source§impl Node for TupleAccess
source§impl Node for ArrayExpression
source§impl Node for BinaryExpression
source§impl Node for CallExpression
source§impl Node for CastExpression
source§impl Node for ErrExpression
source§impl Node for LocatorExpression
source§impl Node for StructExpression
source§impl Node for StructVariableInitializer
source§impl Node for TernaryExpression
source§impl Node for TupleExpression
source§impl Node for UnaryExpression
source§impl Node for UnitExpression
source§impl Node for Annotation
source§impl Node for Input
source§impl Node for Output
source§impl Node for Function
source§impl Node for Mapping
source§impl Node for AssertStatement
source§impl Node for AssignStatement
source§impl Node for Block
source§impl Node for ConditionalStatement
source§impl Node for ConsoleStatement
source§impl Node for ConstDeclaration
source§impl Node for DefinitionStatement
source§impl Node for ExpressionStatement
source§impl Node for IterationStatement
source§impl Node for ReturnStatement
source§impl Node for Member
source§impl Node for Composite
source§impl Node for FunctionStub
source§impl Node for Identifier
\ No newline at end of file
diff --git a/leo_ast/expressions/access/enum.AccessExpression.html b/leo_ast/expressions/access/enum.AccessExpression.html
index 82da863240..d4b7409cd7 100644
--- a/leo_ast/expressions/access/enum.AccessExpression.html
+++ b/leo_ast/expressions/access/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/array/struct.ArrayExpression.html b/leo_ast/expressions/array/struct.ArrayExpression.html
index 942e247033..9417f26ecf 100644
--- a/leo_ast/expressions/array/struct.ArrayExpression.html
+++ b/leo_ast/expressions/array/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions::array - Rust Struct leo_ast::expressions::array::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/binary/enum.BinaryOperation.html b/leo_ast/expressions/binary/enum.BinaryOperation.html
index ad20b0114b..b62052b910 100644
--- a/leo_ast/expressions/binary/enum.BinaryOperation.html
+++ b/leo_ast/expressions/binary/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/binary/struct.BinaryExpression.html b/leo_ast/expressions/binary/struct.BinaryExpression.html
index e016cf94e5..9f705dd3d0 100644
--- a/leo_ast/expressions/binary/struct.BinaryExpression.html
+++ b/leo_ast/expressions/binary/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/call/struct.CallExpression.html b/leo_ast/expressions/call/struct.CallExpression.html
index 7f2b455757..41f0063520 100644
--- a/leo_ast/expressions/call/struct.CallExpression.html
+++ b/leo_ast/expressions/call/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions::call - Rust Struct leo_ast::expressions::call::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html
index 59684ab601..af6a90da32 100644
--- a/leo_ast/expressions/cast/struct.CastExpression.html
+++ b/leo_ast/expressions/cast/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions::cast - Rust Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
§Unary(UnaryExpression)
An unary expression.
§Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
source§fn clone(&self) -> Expression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
source§impl Eq for Expression
source§impl StructuralPartialEq for Expression
Auto Trait Implementations§
§impl Freeze for Expression
§impl RefUnwindSafe for Expression
§impl Send for Expression
§impl Sync for Expression
§impl Unpin for Expression
§impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
impl<T> Any for Twhere
diff --git a/leo_ast/common/identifier/struct.Identifier.html b/leo_ast/common/identifier/struct.Identifier.html
index ff891a31dd..98f9bce091 100644
--- a/leo_ast/common/identifier/struct.Identifier.html
+++ b/leo_ast/common/identifier/struct.Identifier.html
@@ -1,21 +1,21 @@
Identifier in leo_ast::common::identifier - Rust Struct leo_ast::common::identifier::Identifier
source · pub struct Identifier {
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An identifier in a program.
Attention - When adding or removing fields from this struct,
please remember to update its Serialize and Deserialize implementation
to reflect the new struct instantiation.
-Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
-§span: Span
A span locating where the identifier occurred in the source.
+Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
+§span: Span
A span locating where the identifier occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl Identifier
sourcepub fn new(name: Symbol, id: NodeID) -> Self
Constructs a new identifier with name
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.Trait Implementations§
source§impl Clone for Identifier
source§fn clone(&self) -> Identifier
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
Converts to this type from the input type.source§impl Hash for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Node for Identifier
source§impl PartialEq for Identifier
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl Serialize for Identifier
source§impl Copy for Identifier
source§impl Eq for Identifier
Auto Trait Implementations§
§impl Freeze for Identifier
§impl RefUnwindSafe for Identifier
§impl Send for Identifier
§impl Sync for Identifier
§impl Unpin for Identifier
§impl UnwindSafe for Identifier
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> CloneToUninit for Twhere
diff --git a/leo_ast/common/imported_modules/fn.deserialize.html b/leo_ast/common/imported_modules/fn.deserialize.html
index 9fb6d7b4aa..65f29f75d9 100644
--- a/leo_ast/common/imported_modules/fn.deserialize.html
+++ b/leo_ast/common/imported_modules/fn.deserialize.html
@@ -1,3 +1,3 @@
deserialize in leo_ast::common::imported_modules - Rust Function leo_ast::common::imported_modules::deserialize
source · pub fn deserialize<'de, D: Deserializer<'de>>(
deserializer: D,
-) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
+) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
diff --git a/leo_ast/common/imported_modules/fn.serialize.html b/leo_ast/common/imported_modules/fn.serialize.html
index 2fa175237f..21cc4f002b 100644
--- a/leo_ast/common/imported_modules/fn.serialize.html
+++ b/leo_ast/common/imported_modules/fn.serialize.html
@@ -1,4 +1,4 @@
serialize in leo_ast::common::imported_modules - Rust
\ No newline at end of file
diff --git a/leo_ast/common/location/struct.Location.html b/leo_ast/common/location/struct.Location.html
index 2cfac147e7..543aca84f6 100644
--- a/leo_ast/common/location/struct.Location.html
+++ b/leo_ast/common/location/struct.Location.html
@@ -1,12 +1,12 @@
Location in leo_ast::common::location - Rust pub struct Location {
- pub program: Option<Symbol>,
- pub name: Symbol,
-}
Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
+ pub program: Option<Symbol>,
+ pub name: Symbol,
+}Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<&CompositeType> for Location
source§fn from(composite: &CompositeType) -> Location
Converts to this type from the input type.source§impl PartialEq for Location
source§impl Eq for Location
source§impl StructuralPartialEq for Location
Auto Trait Implementations§
§impl Freeze for Location
§impl RefUnwindSafe for Location
§impl Send for Location
§impl Sync for Location
§impl Unpin for Location
§impl UnwindSafe for Location
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/common/node/trait.Node.html b/leo_ast/common/node/trait.Node.html
index 2af510d1d8..27e7284f7e 100644
--- a/leo_ast/common/node/trait.Node.html
+++ b/leo_ast/common/node/trait.Node.html
@@ -1,12 +1,12 @@
Node in leo_ast::common::node - Rust pub trait Node: Debug + Display + Clone + PartialEq + Eq + Serialize + DeserializeOwned {
// Required methods
- fn span(&self) -> Span;
- fn set_span(&mut self, span: Span);
+ fn span(&self) -> Span;
+ fn set_span(&mut self, span: Span);
fn id(&self) -> NodeID;
fn set_id(&mut self, id: NodeID);
}
Expand description
A node in the AST.
-Required Methods§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl Node for AccessExpression
source§impl Node for Expression
source§impl Node for Literal
source§impl Node for Statement
source§impl Node for ArrayAccess
source§impl Node for AssociatedConstant
source§impl Node for AssociatedFunction
source§impl Node for MemberAccess
source§impl Node for TupleAccess
source§impl Node for ArrayExpression
source§impl Node for BinaryExpression
source§impl Node for CallExpression
source§impl Node for CastExpression
source§impl Node for ErrExpression
source§impl Node for LocatorExpression
source§impl Node for StructExpression
source§impl Node for StructVariableInitializer
source§impl Node for TernaryExpression
source§impl Node for TupleExpression
source§impl Node for UnaryExpression
source§impl Node for UnitExpression
source§impl Node for Annotation
source§impl Node for Input
source§impl Node for Output
source§impl Node for Function
source§impl Node for Mapping
source§impl Node for AssertStatement
source§impl Node for AssignStatement
source§impl Node for Block
source§impl Node for ConditionalStatement
source§impl Node for ConsoleStatement
source§impl Node for ConstDeclaration
source§impl Node for DefinitionStatement
source§impl Node for ExpressionStatement
source§impl Node for IterationStatement
source§impl Node for ReturnStatement
source§impl Node for Member
source§impl Node for Composite
source§impl Node for FunctionStub
source§impl Node for Identifier
\ No newline at end of file
diff --git a/leo_ast/expressions/access/enum.AccessExpression.html b/leo_ast/expressions/access/enum.AccessExpression.html
index 82da863240..d4b7409cd7 100644
--- a/leo_ast/expressions/access/enum.AccessExpression.html
+++ b/leo_ast/expressions/access/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/array/struct.ArrayExpression.html b/leo_ast/expressions/array/struct.ArrayExpression.html
index 942e247033..9417f26ecf 100644
--- a/leo_ast/expressions/array/struct.ArrayExpression.html
+++ b/leo_ast/expressions/array/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions::array - Rust Struct leo_ast::expressions::array::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/binary/enum.BinaryOperation.html b/leo_ast/expressions/binary/enum.BinaryOperation.html
index ad20b0114b..b62052b910 100644
--- a/leo_ast/expressions/binary/enum.BinaryOperation.html
+++ b/leo_ast/expressions/binary/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/binary/struct.BinaryExpression.html b/leo_ast/expressions/binary/struct.BinaryExpression.html
index e016cf94e5..9f705dd3d0 100644
--- a/leo_ast/expressions/binary/struct.BinaryExpression.html
+++ b/leo_ast/expressions/binary/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/call/struct.CallExpression.html b/leo_ast/expressions/call/struct.CallExpression.html
index 7f2b455757..41f0063520 100644
--- a/leo_ast/expressions/call/struct.CallExpression.html
+++ b/leo_ast/expressions/call/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions::call - Rust Struct leo_ast::expressions::call::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html
index 59684ab601..af6a90da32 100644
--- a/leo_ast/expressions/cast/struct.CastExpression.html
+++ b/leo_ast/expressions/cast/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions::cast - Rust Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
§Unary(UnaryExpression)
An unary expression.
§Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
source§fn clone(&self) -> Expression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
source§impl Eq for Expression
source§impl StructuralPartialEq for Expression
Auto Trait Implementations§
§impl Freeze for Expression
§impl RefUnwindSafe for Expression
§impl Send for Expression
§impl Sync for Expression
§impl Unpin for Expression
§impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
Struct leo_ast::common::identifier::Identifier
source · pub struct Identifier {
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An identifier in a program.
Attention - When adding or removing fields from this struct, please remember to update its Serialize and Deserialize implementation to reflect the new struct instantiation.
-Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
span: Span
A span locating where the identifier occurred in the source.
+Fields§
§name: Symbol
The symbol that the user wrote, e.g., foo
.
span: Span
A span locating where the identifier occurred in the source.
id: NodeID
The ID of the node.
-Implementations§
source§impl Identifier
impl Identifier
sourcepub fn new(name: Symbol, id: NodeID) -> Self
pub fn new(name: Symbol, id: NodeID) -> Self
Constructs a new identifier with name
and id
and a default span.
Implementations§
Trait Implementations§
source§impl Clone for Identifier
impl Clone for Identifier
source§fn clone(&self) -> Identifier
fn clone(&self) -> Identifier
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Identifier
impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
source§impl Display for Identifier
impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
fn from(name: Identifier) -> Self
Trait Implementations§
source§impl Clone for Identifier
impl Clone for Identifier
source§fn clone(&self) -> Identifier
fn clone(&self) -> Identifier
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Identifier
impl Debug for Identifier
source§impl<'de> Deserialize<'de> for Identifier
impl<'de> Deserialize<'de> for Identifier
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
source§impl Display for Identifier
impl Display for Identifier
source§impl<N: Network> From<&Identifier<N>> for Identifier
impl<N: Network> From<&Identifier<N>> for Identifier
source§impl From<Identifier> for ProgramId
impl From<Identifier> for ProgramId
source§fn from(name: Identifier) -> Self
fn from(name: Identifier) -> Self
source§impl Hash for Identifier
impl Hash for Identifier
source§impl Node for Identifier
impl Node for Identifier
source§impl PartialEq for Identifier
impl PartialEq for Identifier
source§impl Node for Identifier
impl Node for Identifier
source§impl PartialEq for Identifier
impl PartialEq for Identifier
source§impl Serialize for Identifier
impl Serialize for Identifier
impl Copy for Identifier
impl Eq for Identifier
Auto Trait Implementations§
impl Freeze for Identifier
impl RefUnwindSafe for Identifier
impl Send for Identifier
impl Sync for Identifier
impl Unpin for Identifier
impl UnwindSafe for Identifier
Blanket Implementations§
source§impl Serialize for Identifier
impl Serialize for Identifier
impl Copy for Identifier
impl Eq for Identifier
Auto Trait Implementations§
impl Freeze for Identifier
impl RefUnwindSafe for Identifier
impl Send for Identifier
impl Sync for Identifier
impl Unpin for Identifier
impl UnwindSafe for Identifier
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
source§impl<T> CloneToUninit for Twhere
diff --git a/leo_ast/common/imported_modules/fn.deserialize.html b/leo_ast/common/imported_modules/fn.deserialize.html
index 9fb6d7b4aa..65f29f75d9 100644
--- a/leo_ast/common/imported_modules/fn.deserialize.html
+++ b/leo_ast/common/imported_modules/fn.deserialize.html
@@ -1,3 +1,3 @@
deserialize in leo_ast::common::imported_modules - Rust Function leo_ast::common::imported_modules::deserialize
source · pub fn deserialize<'de, D: Deserializer<'de>>(
deserializer: D,
-) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
+) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
diff --git a/leo_ast/common/imported_modules/fn.serialize.html b/leo_ast/common/imported_modules/fn.serialize.html
index 2fa175237f..21cc4f002b 100644
--- a/leo_ast/common/imported_modules/fn.serialize.html
+++ b/leo_ast/common/imported_modules/fn.serialize.html
@@ -1,4 +1,4 @@
serialize in leo_ast::common::imported_modules - Rust
\ No newline at end of file
diff --git a/leo_ast/common/location/struct.Location.html b/leo_ast/common/location/struct.Location.html
index 2cfac147e7..543aca84f6 100644
--- a/leo_ast/common/location/struct.Location.html
+++ b/leo_ast/common/location/struct.Location.html
@@ -1,12 +1,12 @@
Location in leo_ast::common::location - Rust pub struct Location {
- pub program: Option<Symbol>,
- pub name: Symbol,
-}
Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
+ pub program: Option<Symbol>,
+ pub name: Symbol,
+}Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<&CompositeType> for Location
source§fn from(composite: &CompositeType) -> Location
Converts to this type from the input type.source§impl PartialEq for Location
source§impl Eq for Location
source§impl StructuralPartialEq for Location
Auto Trait Implementations§
§impl Freeze for Location
§impl RefUnwindSafe for Location
§impl Send for Location
§impl Sync for Location
§impl Unpin for Location
§impl UnwindSafe for Location
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/common/node/trait.Node.html b/leo_ast/common/node/trait.Node.html
index 2af510d1d8..27e7284f7e 100644
--- a/leo_ast/common/node/trait.Node.html
+++ b/leo_ast/common/node/trait.Node.html
@@ -1,12 +1,12 @@
Node in leo_ast::common::node - Rust pub trait Node: Debug + Display + Clone + PartialEq + Eq + Serialize + DeserializeOwned {
// Required methods
- fn span(&self) -> Span;
- fn set_span(&mut self, span: Span);
+ fn span(&self) -> Span;
+ fn set_span(&mut self, span: Span);
fn id(&self) -> NodeID;
fn set_id(&mut self, id: NodeID);
}
Expand description
A node in the AST.
-Required Methods§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl Node for AccessExpression
source§impl Node for Expression
source§impl Node for Literal
source§impl Node for Statement
source§impl Node for ArrayAccess
source§impl Node for AssociatedConstant
source§impl Node for AssociatedFunction
source§impl Node for MemberAccess
source§impl Node for TupleAccess
source§impl Node for ArrayExpression
source§impl Node for BinaryExpression
source§impl Node for CallExpression
source§impl Node for CastExpression
source§impl Node for ErrExpression
source§impl Node for LocatorExpression
source§impl Node for StructExpression
source§impl Node for StructVariableInitializer
source§impl Node for TernaryExpression
source§impl Node for TupleExpression
source§impl Node for UnaryExpression
source§impl Node for UnitExpression
source§impl Node for Annotation
source§impl Node for Input
source§impl Node for Output
source§impl Node for Function
source§impl Node for Mapping
source§impl Node for AssertStatement
source§impl Node for AssignStatement
source§impl Node for Block
source§impl Node for ConditionalStatement
source§impl Node for ConsoleStatement
source§impl Node for ConstDeclaration
source§impl Node for DefinitionStatement
source§impl Node for ExpressionStatement
source§impl Node for IterationStatement
source§impl Node for ReturnStatement
source§impl Node for Member
source§impl Node for Composite
source§impl Node for FunctionStub
source§impl Node for Identifier
\ No newline at end of file
diff --git a/leo_ast/expressions/access/enum.AccessExpression.html b/leo_ast/expressions/access/enum.AccessExpression.html
index 82da863240..d4b7409cd7 100644
--- a/leo_ast/expressions/access/enum.AccessExpression.html
+++ b/leo_ast/expressions/access/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/array/struct.ArrayExpression.html b/leo_ast/expressions/array/struct.ArrayExpression.html
index 942e247033..9417f26ecf 100644
--- a/leo_ast/expressions/array/struct.ArrayExpression.html
+++ b/leo_ast/expressions/array/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions::array - Rust Struct leo_ast::expressions::array::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/binary/enum.BinaryOperation.html b/leo_ast/expressions/binary/enum.BinaryOperation.html
index ad20b0114b..b62052b910 100644
--- a/leo_ast/expressions/binary/enum.BinaryOperation.html
+++ b/leo_ast/expressions/binary/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/binary/struct.BinaryExpression.html b/leo_ast/expressions/binary/struct.BinaryExpression.html
index e016cf94e5..9f705dd3d0 100644
--- a/leo_ast/expressions/binary/struct.BinaryExpression.html
+++ b/leo_ast/expressions/binary/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/call/struct.CallExpression.html b/leo_ast/expressions/call/struct.CallExpression.html
index 7f2b455757..41f0063520 100644
--- a/leo_ast/expressions/call/struct.CallExpression.html
+++ b/leo_ast/expressions/call/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions::call - Rust Struct leo_ast::expressions::call::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html
index 59684ab601..af6a90da32 100644
--- a/leo_ast/expressions/cast/struct.CastExpression.html
+++ b/leo_ast/expressions/cast/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions::cast - Rust Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
§Unary(UnaryExpression)
An unary expression.
§Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
source§fn clone(&self) -> Expression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
source§impl Eq for Expression
source§impl StructuralPartialEq for Expression
Auto Trait Implementations§
§impl Freeze for Expression
§impl RefUnwindSafe for Expression
§impl Send for Expression
§impl Sync for Expression
§impl Unpin for Expression
§impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
impl<T> CloneToUninit for Twhere
diff --git a/leo_ast/common/imported_modules/fn.deserialize.html b/leo_ast/common/imported_modules/fn.deserialize.html
index 9fb6d7b4aa..65f29f75d9 100644
--- a/leo_ast/common/imported_modules/fn.deserialize.html
+++ b/leo_ast/common/imported_modules/fn.deserialize.html
@@ -1,3 +1,3 @@
deserialize in leo_ast::common::imported_modules - Rust Function leo_ast::common::imported_modules::deserialize
source · pub fn deserialize<'de, D: Deserializer<'de>>(
deserializer: D,
-) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
+) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
\ No newline at end of file
diff --git a/leo_ast/common/imported_modules/fn.serialize.html b/leo_ast/common/imported_modules/fn.serialize.html
index 2fa175237f..21cc4f002b 100644
--- a/leo_ast/common/imported_modules/fn.serialize.html
+++ b/leo_ast/common/imported_modules/fn.serialize.html
@@ -1,4 +1,4 @@
serialize in leo_ast::common::imported_modules - Rust
\ No newline at end of file
diff --git a/leo_ast/common/location/struct.Location.html b/leo_ast/common/location/struct.Location.html
index 2cfac147e7..543aca84f6 100644
--- a/leo_ast/common/location/struct.Location.html
+++ b/leo_ast/common/location/struct.Location.html
@@ -1,12 +1,12 @@
Location in leo_ast::common::location - Rust pub struct Location {
- pub program: Option<Symbol>,
- pub name: Symbol,
-}
Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
+ pub program: Option<Symbol>,
+ pub name: Symbol,
+}Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<&CompositeType> for Location
source§fn from(composite: &CompositeType) -> Location
Converts to this type from the input type.source§impl PartialEq for Location
source§impl Eq for Location
source§impl StructuralPartialEq for Location
Auto Trait Implementations§
§impl Freeze for Location
§impl RefUnwindSafe for Location
§impl Send for Location
§impl Sync for Location
§impl Unpin for Location
§impl UnwindSafe for Location
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/common/node/trait.Node.html b/leo_ast/common/node/trait.Node.html
index 2af510d1d8..27e7284f7e 100644
--- a/leo_ast/common/node/trait.Node.html
+++ b/leo_ast/common/node/trait.Node.html
@@ -1,12 +1,12 @@
Node in leo_ast::common::node - Rust pub trait Node: Debug + Display + Clone + PartialEq + Eq + Serialize + DeserializeOwned {
// Required methods
- fn span(&self) -> Span;
- fn set_span(&mut self, span: Span);
+ fn span(&self) -> Span;
+ fn set_span(&mut self, span: Span);
fn id(&self) -> NodeID;
fn set_id(&mut self, id: NodeID);
}
Expand description
A node in the AST.
-Required Methods§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl Node for AccessExpression
source§impl Node for Expression
source§impl Node for Literal
source§impl Node for Statement
source§impl Node for ArrayAccess
source§impl Node for AssociatedConstant
source§impl Node for AssociatedFunction
source§impl Node for MemberAccess
source§impl Node for TupleAccess
source§impl Node for ArrayExpression
source§impl Node for BinaryExpression
source§impl Node for CallExpression
source§impl Node for CastExpression
source§impl Node for ErrExpression
source§impl Node for LocatorExpression
source§impl Node for StructExpression
source§impl Node for StructVariableInitializer
source§impl Node for TernaryExpression
source§impl Node for TupleExpression
source§impl Node for UnaryExpression
source§impl Node for UnitExpression
source§impl Node for Annotation
source§impl Node for Input
source§impl Node for Output
source§impl Node for Function
source§impl Node for Mapping
source§impl Node for AssertStatement
source§impl Node for AssignStatement
source§impl Node for Block
source§impl Node for ConditionalStatement
source§impl Node for ConsoleStatement
source§impl Node for ConstDeclaration
source§impl Node for DefinitionStatement
source§impl Node for ExpressionStatement
source§impl Node for IterationStatement
source§impl Node for ReturnStatement
source§impl Node for Member
source§impl Node for Composite
source§impl Node for FunctionStub
source§impl Node for Identifier
\ No newline at end of file
diff --git a/leo_ast/expressions/access/enum.AccessExpression.html b/leo_ast/expressions/access/enum.AccessExpression.html
index 82da863240..d4b7409cd7 100644
--- a/leo_ast/expressions/access/enum.AccessExpression.html
+++ b/leo_ast/expressions/access/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/array/struct.ArrayExpression.html b/leo_ast/expressions/array/struct.ArrayExpression.html
index 942e247033..9417f26ecf 100644
--- a/leo_ast/expressions/array/struct.ArrayExpression.html
+++ b/leo_ast/expressions/array/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions::array - Rust Struct leo_ast::expressions::array::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/binary/enum.BinaryOperation.html b/leo_ast/expressions/binary/enum.BinaryOperation.html
index ad20b0114b..b62052b910 100644
--- a/leo_ast/expressions/binary/enum.BinaryOperation.html
+++ b/leo_ast/expressions/binary/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/binary/struct.BinaryExpression.html b/leo_ast/expressions/binary/struct.BinaryExpression.html
index e016cf94e5..9f705dd3d0 100644
--- a/leo_ast/expressions/binary/struct.BinaryExpression.html
+++ b/leo_ast/expressions/binary/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/call/struct.CallExpression.html b/leo_ast/expressions/call/struct.CallExpression.html
index 7f2b455757..41f0063520 100644
--- a/leo_ast/expressions/call/struct.CallExpression.html
+++ b/leo_ast/expressions/call/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions::call - Rust Struct leo_ast::expressions::call::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html
index 59684ab601..af6a90da32 100644
--- a/leo_ast/expressions/cast/struct.CastExpression.html
+++ b/leo_ast/expressions/cast/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions::cast - Rust Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
§Unary(UnaryExpression)
An unary expression.
§Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
source§fn clone(&self) -> Expression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
source§impl Eq for Expression
source§impl StructuralPartialEq for Expression
Auto Trait Implementations§
§impl Freeze for Expression
§impl RefUnwindSafe for Expression
§impl Send for Expression
§impl Sync for Expression
§impl Unpin for Expression
§impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
Function leo_ast::common::imported_modules::deserialize
source · pub fn deserialize<'de, D: Deserializer<'de>>(
deserializer: D,
-) -> Result<IndexMap<Vec<Symbol>, Program>, D::Error>
pub struct Location {
- pub program: Option<Symbol>,
- pub name: Symbol,
-}
Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
+ pub program: Option<Symbol>,
+ pub name: Symbol,
+}Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<&CompositeType> for Location
source§fn from(composite: &CompositeType) -> Location
Converts to this type from the input type.source§impl PartialEq for Location
source§impl Eq for Location
source§impl StructuralPartialEq for Location
Auto Trait Implementations§
§impl Freeze for Location
§impl RefUnwindSafe for Location
§impl Send for Location
§impl Sync for Location
§impl Unpin for Location
§impl UnwindSafe for Location
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/common/node/trait.Node.html b/leo_ast/common/node/trait.Node.html
index 2af510d1d8..27e7284f7e 100644
--- a/leo_ast/common/node/trait.Node.html
+++ b/leo_ast/common/node/trait.Node.html
@@ -1,12 +1,12 @@
Node in leo_ast::common::node - Rust pub trait Node: Debug + Display + Clone + PartialEq + Eq + Serialize + DeserializeOwned {
// Required methods
- fn span(&self) -> Span;
- fn set_span(&mut self, span: Span);
+ fn span(&self) -> Span;
+ fn set_span(&mut self, span: Span);
fn id(&self) -> NodeID;
fn set_id(&mut self, id: NodeID);
}
Expand description
A node in the AST.
-Required Methods§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl Node for AccessExpression
source§impl Node for Expression
source§impl Node for Literal
source§impl Node for Statement
source§impl Node for ArrayAccess
source§impl Node for AssociatedConstant
source§impl Node for AssociatedFunction
source§impl Node for MemberAccess
source§impl Node for TupleAccess
source§impl Node for ArrayExpression
source§impl Node for BinaryExpression
source§impl Node for CallExpression
source§impl Node for CastExpression
source§impl Node for ErrExpression
source§impl Node for LocatorExpression
source§impl Node for StructExpression
source§impl Node for StructVariableInitializer
source§impl Node for TernaryExpression
source§impl Node for TupleExpression
source§impl Node for UnaryExpression
source§impl Node for UnitExpression
source§impl Node for Annotation
source§impl Node for Input
source§impl Node for Output
source§impl Node for Function
source§impl Node for Mapping
source§impl Node for AssertStatement
source§impl Node for AssignStatement
source§impl Node for Block
source§impl Node for ConditionalStatement
source§impl Node for ConsoleStatement
source§impl Node for ConstDeclaration
source§impl Node for DefinitionStatement
source§impl Node for ExpressionStatement
source§impl Node for IterationStatement
source§impl Node for ReturnStatement
source§impl Node for Member
source§impl Node for Composite
source§impl Node for FunctionStub
source§impl Node for Identifier
\ No newline at end of file
diff --git a/leo_ast/expressions/access/enum.AccessExpression.html b/leo_ast/expressions/access/enum.AccessExpression.html
index 82da863240..d4b7409cd7 100644
--- a/leo_ast/expressions/access/enum.AccessExpression.html
+++ b/leo_ast/expressions/access/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/array/struct.ArrayExpression.html b/leo_ast/expressions/array/struct.ArrayExpression.html
index 942e247033..9417f26ecf 100644
--- a/leo_ast/expressions/array/struct.ArrayExpression.html
+++ b/leo_ast/expressions/array/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions::array - Rust Struct leo_ast::expressions::array::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/binary/enum.BinaryOperation.html b/leo_ast/expressions/binary/enum.BinaryOperation.html
index ad20b0114b..b62052b910 100644
--- a/leo_ast/expressions/binary/enum.BinaryOperation.html
+++ b/leo_ast/expressions/binary/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/binary/struct.BinaryExpression.html b/leo_ast/expressions/binary/struct.BinaryExpression.html
index e016cf94e5..9f705dd3d0 100644
--- a/leo_ast/expressions/binary/struct.BinaryExpression.html
+++ b/leo_ast/expressions/binary/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/call/struct.CallExpression.html b/leo_ast/expressions/call/struct.CallExpression.html
index 7f2b455757..41f0063520 100644
--- a/leo_ast/expressions/call/struct.CallExpression.html
+++ b/leo_ast/expressions/call/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions::call - Rust Struct leo_ast::expressions::call::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html
index 59684ab601..af6a90da32 100644
--- a/leo_ast/expressions/cast/struct.CastExpression.html
+++ b/leo_ast/expressions/cast/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions::cast - Rust Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
§Unary(UnaryExpression)
An unary expression.
§Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
source§fn clone(&self) -> Expression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
source§impl Eq for Expression
source§impl StructuralPartialEq for Expression
Auto Trait Implementations§
§impl Freeze for Expression
§impl RefUnwindSafe for Expression
§impl Send for Expression
§impl Sync for Expression
§impl Unpin for Expression
§impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
+ pub program: Option<Symbol>,
+ pub name: Symbol,
+}Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<&CompositeType> for Location
source§fn from(composite: &CompositeType) -> Location
Converts to this type from the input type.source§impl PartialEq for Location
source§impl Eq for Location
source§impl StructuralPartialEq for Location
Auto Trait Implementations§
§impl Freeze for Location
§impl RefUnwindSafe for Location
§impl Send for Location
§impl Sync for Location
§impl Unpin for Location
§impl UnwindSafe for Location
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/common/node/trait.Node.html b/leo_ast/common/node/trait.Node.html
index 2af510d1d8..27e7284f7e 100644
--- a/leo_ast/common/node/trait.Node.html
+++ b/leo_ast/common/node/trait.Node.html
@@ -1,12 +1,12 @@
Node in leo_ast::common::node - Rust pub trait Node: Debug + Display + Clone + PartialEq + Eq + Serialize + DeserializeOwned {
// Required methods
- fn span(&self) -> Span;
- fn set_span(&mut self, span: Span);
+ fn span(&self) -> Span;
+ fn set_span(&mut self, span: Span);
fn id(&self) -> NodeID;
fn set_id(&mut self, id: NodeID);
}
Expand description
A node in the AST.
-Required Methods§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl Node for AccessExpression
source§impl Node for Expression
source§impl Node for Literal
source§impl Node for Statement
source§impl Node for ArrayAccess
source§impl Node for AssociatedConstant
source§impl Node for AssociatedFunction
source§impl Node for MemberAccess
source§impl Node for TupleAccess
source§impl Node for ArrayExpression
source§impl Node for BinaryExpression
source§impl Node for CallExpression
source§impl Node for CastExpression
source§impl Node for ErrExpression
source§impl Node for LocatorExpression
source§impl Node for StructExpression
source§impl Node for StructVariableInitializer
source§impl Node for TernaryExpression
source§impl Node for TupleExpression
source§impl Node for UnaryExpression
source§impl Node for UnitExpression
source§impl Node for Annotation
source§impl Node for Input
source§impl Node for Output
source§impl Node for Function
source§impl Node for Mapping
source§impl Node for AssertStatement
source§impl Node for AssignStatement
source§impl Node for Block
source§impl Node for ConditionalStatement
source§impl Node for ConsoleStatement
source§impl Node for ConstDeclaration
source§impl Node for DefinitionStatement
source§impl Node for ExpressionStatement
source§impl Node for IterationStatement
source§impl Node for ReturnStatement
source§impl Node for Member
source§impl Node for Composite
source§impl Node for FunctionStub
source§impl Node for Identifier
\ No newline at end of file
diff --git a/leo_ast/expressions/access/enum.AccessExpression.html b/leo_ast/expressions/access/enum.AccessExpression.html
index 82da863240..d4b7409cd7 100644
--- a/leo_ast/expressions/access/enum.AccessExpression.html
+++ b/leo_ast/expressions/access/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/array/struct.ArrayExpression.html b/leo_ast/expressions/array/struct.ArrayExpression.html
index 942e247033..9417f26ecf 100644
--- a/leo_ast/expressions/array/struct.ArrayExpression.html
+++ b/leo_ast/expressions/array/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions::array - Rust Struct leo_ast::expressions::array::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/binary/enum.BinaryOperation.html b/leo_ast/expressions/binary/enum.BinaryOperation.html
index ad20b0114b..b62052b910 100644
--- a/leo_ast/expressions/binary/enum.BinaryOperation.html
+++ b/leo_ast/expressions/binary/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/binary/struct.BinaryExpression.html b/leo_ast/expressions/binary/struct.BinaryExpression.html
index e016cf94e5..9f705dd3d0 100644
--- a/leo_ast/expressions/binary/struct.BinaryExpression.html
+++ b/leo_ast/expressions/binary/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/call/struct.CallExpression.html b/leo_ast/expressions/call/struct.CallExpression.html
index 7f2b455757..41f0063520 100644
--- a/leo_ast/expressions/call/struct.CallExpression.html
+++ b/leo_ast/expressions/call/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions::call - Rust Struct leo_ast::expressions::call::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html
index 59684ab601..af6a90da32 100644
--- a/leo_ast/expressions/cast/struct.CastExpression.html
+++ b/leo_ast/expressions/cast/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions::cast - Rust Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
§Unary(UnaryExpression)
An unary expression.
§Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
source§fn clone(&self) -> Expression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
source§impl Eq for Expression
source§impl StructuralPartialEq for Expression
Auto Trait Implementations§
§impl Freeze for Expression
§impl RefUnwindSafe for Expression
§impl Send for Expression
§impl Sync for Expression
§impl Unpin for Expression
§impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
Fields§
§program: Option<Symbol>
§name: Symbol
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
impl<'de> Deserialize<'de> for Location
source§fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Location, D::Error>where
D: Deserializer<'de>,
source§impl From<&CompositeType> for Location
impl From<&CompositeType> for Location
source§fn from(composite: &CompositeType) -> Location
fn from(composite: &CompositeType) -> Location
source§impl PartialEq for Location
impl PartialEq for Location
impl Eq for Location
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/common/node/trait.Node.html b/leo_ast/common/node/trait.Node.html
index 2af510d1d8..27e7284f7e 100644
--- a/leo_ast/common/node/trait.Node.html
+++ b/leo_ast/common/node/trait.Node.html
@@ -1,12 +1,12 @@
Node in leo_ast::common::node - Rust pub trait Node: Debug + Display + Clone + PartialEq + Eq + Serialize + DeserializeOwned {
// Required methods
- fn span(&self) -> Span;
- fn set_span(&mut self, span: Span);
+ fn span(&self) -> Span;
+ fn set_span(&mut self, span: Span);
fn id(&self) -> NodeID;
fn set_id(&mut self, id: NodeID);
}
Expand description
A node in the AST.
-Required Methods§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl Node for AccessExpression
source§impl Node for Expression
source§impl Node for Literal
source§impl Node for Statement
source§impl Node for ArrayAccess
source§impl Node for AssociatedConstant
source§impl Node for AssociatedFunction
source§impl Node for MemberAccess
source§impl Node for TupleAccess
source§impl Node for ArrayExpression
source§impl Node for BinaryExpression
source§impl Node for CallExpression
source§impl Node for CastExpression
source§impl Node for ErrExpression
source§impl Node for LocatorExpression
source§impl Node for StructExpression
source§impl Node for StructVariableInitializer
source§impl Node for TernaryExpression
source§impl Node for TupleExpression
source§impl Node for UnaryExpression
source§impl Node for UnitExpression
source§impl Node for Annotation
source§impl Node for Input
source§impl Node for Output
source§impl Node for Function
source§impl Node for Mapping
source§impl Node for AssertStatement
source§impl Node for AssignStatement
source§impl Node for Block
source§impl Node for ConditionalStatement
source§impl Node for ConsoleStatement
source§impl Node for ConstDeclaration
source§impl Node for DefinitionStatement
source§impl Node for ExpressionStatement
source§impl Node for IterationStatement
source§impl Node for ReturnStatement
source§impl Node for Member
source§impl Node for Composite
source§impl Node for FunctionStub
source§impl Node for Identifier
\ No newline at end of file
diff --git a/leo_ast/expressions/access/enum.AccessExpression.html b/leo_ast/expressions/access/enum.AccessExpression.html
index 82da863240..d4b7409cd7 100644
--- a/leo_ast/expressions/access/enum.AccessExpression.html
+++ b/leo_ast/expressions/access/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/array/struct.ArrayExpression.html b/leo_ast/expressions/array/struct.ArrayExpression.html
index 942e247033..9417f26ecf 100644
--- a/leo_ast/expressions/array/struct.ArrayExpression.html
+++ b/leo_ast/expressions/array/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions::array - Rust Struct leo_ast::expressions::array::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/binary/enum.BinaryOperation.html b/leo_ast/expressions/binary/enum.BinaryOperation.html
index ad20b0114b..b62052b910 100644
--- a/leo_ast/expressions/binary/enum.BinaryOperation.html
+++ b/leo_ast/expressions/binary/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/binary/struct.BinaryExpression.html b/leo_ast/expressions/binary/struct.BinaryExpression.html
index e016cf94e5..9f705dd3d0 100644
--- a/leo_ast/expressions/binary/struct.BinaryExpression.html
+++ b/leo_ast/expressions/binary/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/call/struct.CallExpression.html b/leo_ast/expressions/call/struct.CallExpression.html
index 7f2b455757..41f0063520 100644
--- a/leo_ast/expressions/call/struct.CallExpression.html
+++ b/leo_ast/expressions/call/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions::call - Rust Struct leo_ast::expressions::call::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html
index 59684ab601..af6a90da32 100644
--- a/leo_ast/expressions/cast/struct.CastExpression.html
+++ b/leo_ast/expressions/cast/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions::cast - Rust Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
§Unary(UnaryExpression)
An unary expression.
§Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
source§fn clone(&self) -> Expression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
source§impl Eq for Expression
source§impl StructuralPartialEq for Expression
Auto Trait Implementations§
§impl Freeze for Expression
§impl RefUnwindSafe for Expression
§impl Send for Expression
§impl Sync for Expression
§impl Unpin for Expression
§impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/common/node/trait.Node.html b/leo_ast/common/node/trait.Node.html
index 2af510d1d8..27e7284f7e 100644
--- a/leo_ast/common/node/trait.Node.html
+++ b/leo_ast/common/node/trait.Node.html
@@ -1,12 +1,12 @@
Node in leo_ast::common::node - Rust pub trait Node: Debug + Display + Clone + PartialEq + Eq + Serialize + DeserializeOwned {
// Required methods
- fn span(&self) -> Span;
- fn set_span(&mut self, span: Span);
+ fn span(&self) -> Span;
+ fn set_span(&mut self, span: Span);
fn id(&self) -> NodeID;
fn set_id(&mut self, id: NodeID);
}
Expand description
A node in the AST.
-Required Methods§
Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl Node for AccessExpression
source§impl Node for Expression
source§impl Node for Literal
source§impl Node for Statement
source§impl Node for ArrayAccess
source§impl Node for AssociatedConstant
source§impl Node for AssociatedFunction
source§impl Node for MemberAccess
source§impl Node for TupleAccess
source§impl Node for ArrayExpression
source§impl Node for BinaryExpression
source§impl Node for CallExpression
source§impl Node for CastExpression
source§impl Node for ErrExpression
source§impl Node for LocatorExpression
source§impl Node for StructExpression
source§impl Node for StructVariableInitializer
source§impl Node for TernaryExpression
source§impl Node for TupleExpression
source§impl Node for UnaryExpression
source§impl Node for UnitExpression
source§impl Node for Annotation
source§impl Node for Input
source§impl Node for Output
source§impl Node for Function
source§impl Node for Mapping
source§impl Node for AssertStatement
source§impl Node for AssignStatement
source§impl Node for Block
source§impl Node for ConditionalStatement
source§impl Node for ConsoleStatement
source§impl Node for ConstDeclaration
source§impl Node for DefinitionStatement
source§impl Node for ExpressionStatement
source§impl Node for IterationStatement
source§impl Node for ReturnStatement
source§impl Node for Member
source§impl Node for Composite
source§impl Node for FunctionStub
source§impl Node for Identifier
\ No newline at end of file
diff --git a/leo_ast/expressions/access/enum.AccessExpression.html b/leo_ast/expressions/access/enum.AccessExpression.html
index 82da863240..d4b7409cd7 100644
--- a/leo_ast/expressions/access/enum.AccessExpression.html
+++ b/leo_ast/expressions/access/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/array/struct.ArrayExpression.html b/leo_ast/expressions/array/struct.ArrayExpression.html
index 942e247033..9417f26ecf 100644
--- a/leo_ast/expressions/array/struct.ArrayExpression.html
+++ b/leo_ast/expressions/array/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions::array - Rust Struct leo_ast::expressions::array::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/binary/enum.BinaryOperation.html b/leo_ast/expressions/binary/enum.BinaryOperation.html
index ad20b0114b..b62052b910 100644
--- a/leo_ast/expressions/binary/enum.BinaryOperation.html
+++ b/leo_ast/expressions/binary/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/binary/struct.BinaryExpression.html b/leo_ast/expressions/binary/struct.BinaryExpression.html
index e016cf94e5..9f705dd3d0 100644
--- a/leo_ast/expressions/binary/struct.BinaryExpression.html
+++ b/leo_ast/expressions/binary/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/call/struct.CallExpression.html b/leo_ast/expressions/call/struct.CallExpression.html
index 7f2b455757..41f0063520 100644
--- a/leo_ast/expressions/call/struct.CallExpression.html
+++ b/leo_ast/expressions/call/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions::call - Rust Struct leo_ast::expressions::call::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html
index 59684ab601..af6a90da32 100644
--- a/leo_ast/expressions/cast/struct.CastExpression.html
+++ b/leo_ast/expressions/cast/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions::cast - Rust Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
§Unary(UnaryExpression)
An unary expression.
§Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
source§fn clone(&self) -> Expression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
source§impl Eq for Expression
source§impl StructuralPartialEq for Expression
Auto Trait Implementations§
§impl Freeze for Expression
§impl RefUnwindSafe for Expression
§impl Send for Expression
§impl Sync for Expression
§impl Unpin for Expression
§impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
pub trait Node: Debug + Display + Clone + PartialEq + Eq + Serialize + DeserializeOwned {
// Required methods
- fn span(&self) -> Span;
- fn set_span(&mut self, span: Span);
+ fn span(&self) -> Span;
+ fn set_span(&mut self, span: Span);
fn id(&self) -> NodeID;
fn set_id(&mut self, id: NodeID);
}
Expand description
A node in the AST.
-Required Methods§
Required Methods§
Object Safety§
Implementors§
impl Node for AccessExpression
impl Node for Expression
impl Node for Literal
impl Node for Statement
impl Node for ArrayAccess
impl Node for AssociatedConstant
impl Node for AssociatedFunction
impl Node for MemberAccess
impl Node for TupleAccess
impl Node for ArrayExpression
impl Node for BinaryExpression
impl Node for CallExpression
impl Node for CastExpression
impl Node for ErrExpression
impl Node for LocatorExpression
impl Node for StructExpression
impl Node for StructVariableInitializer
impl Node for TernaryExpression
impl Node for TupleExpression
impl Node for UnaryExpression
impl Node for UnitExpression
impl Node for Annotation
impl Node for Input
impl Node for Output
impl Node for Function
impl Node for Mapping
impl Node for AssertStatement
impl Node for AssignStatement
impl Node for Block
impl Node for ConditionalStatement
impl Node for ConsoleStatement
impl Node for ConstDeclaration
impl Node for DefinitionStatement
impl Node for ExpressionStatement
impl Node for IterationStatement
impl Node for ReturnStatement
impl Node for Member
impl Node for Composite
impl Node for FunctionStub
impl Node for Identifier
Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
source§impl Clone for AccessExpression
impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
fn clone(&self) -> AccessExpression
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AccessExpression
impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
impl<'de> Deserialize<'de> for AccessExpression
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>,
source§impl Display for AccessExpression
impl Display for AccessExpression
source§impl Node for AccessExpression
impl Node for AccessExpression
source§impl PartialEq for AccessExpression
impl PartialEq for AccessExpression
source§impl Display for AccessExpression
impl Display for AccessExpression
source§impl Node for AccessExpression
impl Node for AccessExpression
source§impl PartialEq for AccessExpression
impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
fn eq(&self, other: &AccessExpression) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
impl Serialize for AccessExpression
impl Eq for AccessExpression
impl StructuralPartialEq for AccessExpression
impl Freeze for AccessExpression
impl RefUnwindSafe for AccessExpression
impl Send for AccessExpression
impl Sync for AccessExpression
impl Unpin for AccessExpression
impl UnwindSafe for AccessExpression
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/array/struct.ArrayExpression.html b/leo_ast/expressions/array/struct.ArrayExpression.html
index 942e247033..9417f26ecf 100644
--- a/leo_ast/expressions/array/struct.ArrayExpression.html
+++ b/leo_ast/expressions/array/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions::array - Rust Struct leo_ast::expressions::array::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/binary/enum.BinaryOperation.html b/leo_ast/expressions/binary/enum.BinaryOperation.html
index ad20b0114b..b62052b910 100644
--- a/leo_ast/expressions/binary/enum.BinaryOperation.html
+++ b/leo_ast/expressions/binary/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/binary/struct.BinaryExpression.html b/leo_ast/expressions/binary/struct.BinaryExpression.html
index e016cf94e5..9f705dd3d0 100644
--- a/leo_ast/expressions/binary/struct.BinaryExpression.html
+++ b/leo_ast/expressions/binary/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/call/struct.CallExpression.html b/leo_ast/expressions/call/struct.CallExpression.html
index 7f2b455757..41f0063520 100644
--- a/leo_ast/expressions/call/struct.CallExpression.html
+++ b/leo_ast/expressions/call/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions::call - Rust Struct leo_ast::expressions::call::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html
index 59684ab601..af6a90da32 100644
--- a/leo_ast/expressions/cast/struct.CastExpression.html
+++ b/leo_ast/expressions/cast/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions::cast - Rust Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
§Unary(UnaryExpression)
An unary expression.
§Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
source§fn clone(&self) -> Expression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
source§impl Eq for Expression
source§impl StructuralPartialEq for Expression
Auto Trait Implementations§
§impl Freeze for Expression
§impl RefUnwindSafe for Expression
§impl Send for Expression
§impl Sync for Expression
§impl Unpin for Expression
§impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
impl<T> Any for Twhere
diff --git a/leo_ast/expressions/array/struct.ArrayExpression.html b/leo_ast/expressions/array/struct.ArrayExpression.html
index 942e247033..9417f26ecf 100644
--- a/leo_ast/expressions/array/struct.ArrayExpression.html
+++ b/leo_ast/expressions/array/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions::array - Rust Struct leo_ast::expressions::array::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/binary/enum.BinaryOperation.html b/leo_ast/expressions/binary/enum.BinaryOperation.html
index ad20b0114b..b62052b910 100644
--- a/leo_ast/expressions/binary/enum.BinaryOperation.html
+++ b/leo_ast/expressions/binary/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/binary/struct.BinaryExpression.html b/leo_ast/expressions/binary/struct.BinaryExpression.html
index e016cf94e5..9f705dd3d0 100644
--- a/leo_ast/expressions/binary/struct.BinaryExpression.html
+++ b/leo_ast/expressions/binary/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/call/struct.CallExpression.html b/leo_ast/expressions/call/struct.CallExpression.html
index 7f2b455757..41f0063520 100644
--- a/leo_ast/expressions/call/struct.CallExpression.html
+++ b/leo_ast/expressions/call/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions::call - Rust Struct leo_ast::expressions::call::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html
index 59684ab601..af6a90da32 100644
--- a/leo_ast/expressions/cast/struct.CastExpression.html
+++ b/leo_ast/expressions/cast/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions::cast - Rust Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
§Unary(UnaryExpression)
An unary expression.
§Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
source§fn clone(&self) -> Expression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
source§impl Eq for Expression
source§impl StructuralPartialEq for Expression
Auto Trait Implementations§
§impl Freeze for Expression
§impl RefUnwindSafe for Expression
§impl Send for Expression
§impl Sync for Expression
§impl Unpin for Expression
§impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
Struct leo_ast::expressions::array::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-span: Span
The span from [
to ]
.
span: Span
The span from [
to ]
.
id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
fn clone(&self) -> ArrayExpression
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ArrayExpression
impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
impl<'de> Deserialize<'de> for ArrayExpression
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>,
source§impl Display for ArrayExpression
impl Display for ArrayExpression
source§impl Node for ArrayExpression
impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
impl Display for ArrayExpression
source§impl Node for ArrayExpression
impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
fn eq(&self, other: &ArrayExpression) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
impl Serialize for ArrayExpression
impl Eq for ArrayExpression
impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
impl Freeze for ArrayExpression
impl RefUnwindSafe for ArrayExpression
impl Send for ArrayExpression
impl Sync for ArrayExpression
impl Unpin for ArrayExpression
impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/binary/enum.BinaryOperation.html b/leo_ast/expressions/binary/enum.BinaryOperation.html
index ad20b0114b..b62052b910 100644
--- a/leo_ast/expressions/binary/enum.BinaryOperation.html
+++ b/leo_ast/expressions/binary/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
impl<T> Any for Twhere
diff --git a/leo_ast/expressions/binary/enum.BinaryOperation.html b/leo_ast/expressions/binary/enum.BinaryOperation.html
index ad20b0114b..b62052b910 100644
--- a/leo_ast/expressions/binary/enum.BinaryOperation.html
+++ b/leo_ast/expressions/binary/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Sub
Subtraction, i.e. -
, .sub()
.
SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
Xor
Bitwise XOR, i.e. .xor()
.
Implementations§
source§impl BinaryOperation
impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
pub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
pub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
fn clone(&self) -> BinaryOperation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BinaryOperation
impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
impl<'de> Deserialize<'de> for BinaryOperation
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>,
source§impl Display for BinaryOperation
impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
fn eq(&self, other: &BinaryOperation) -> bool
self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/binary/struct.BinaryExpression.html b/leo_ast/expressions/binary/struct.BinaryExpression.html
index e016cf94e5..9f705dd3d0 100644
--- a/leo_ast/expressions/binary/struct.BinaryExpression.html
+++ b/leo_ast/expressions/binary/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
right: Box<Expression>
The right operand of the expression.
op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-span: Span
The span from left
to right
.
span: Span
The span from left
to right
.
id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
fn clone(&self) -> BinaryExpression
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BinaryExpression
impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
impl<'de> Deserialize<'de> for BinaryExpression
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>,
source§impl Display for BinaryExpression
impl Display for BinaryExpression
source§impl Node for BinaryExpression
impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
impl Display for BinaryExpression
source§impl Node for BinaryExpression
impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
fn eq(&self, other: &BinaryExpression) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
impl Serialize for BinaryExpression
impl Eq for BinaryExpression
impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
impl Freeze for BinaryExpression
impl RefUnwindSafe for BinaryExpression
impl Send for BinaryExpression
impl Sync for BinaryExpression
impl Unpin for BinaryExpression
impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/call/struct.CallExpression.html b/leo_ast/expressions/call/struct.CallExpression.html
index 7f2b455757..41f0063520 100644
--- a/leo_ast/expressions/call/struct.CallExpression.html
+++ b/leo_ast/expressions/call/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions::call - Rust Struct leo_ast::expressions::call::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html
index 59684ab601..af6a90da32 100644
--- a/leo_ast/expressions/cast/struct.CastExpression.html
+++ b/leo_ast/expressions/cast/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions::cast - Rust Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
§Unary(UnaryExpression)
An unary expression.
§Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
source§fn clone(&self) -> Expression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
source§impl Eq for Expression
source§impl StructuralPartialEq for Expression
Auto Trait Implementations§
§impl Freeze for Expression
§impl RefUnwindSafe for Expression
§impl Send for Expression
§impl Sync for Expression
§impl Unpin for Expression
§impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
impl<T> Any for Twhere
diff --git a/leo_ast/expressions/call/struct.CallExpression.html b/leo_ast/expressions/call/struct.CallExpression.html
index 7f2b455757..41f0063520 100644
--- a/leo_ast/expressions/call/struct.CallExpression.html
+++ b/leo_ast/expressions/call/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions::call - Rust Struct leo_ast::expressions::call::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html
index 59684ab601..af6a90da32 100644
--- a/leo_ast/expressions/cast/struct.CastExpression.html
+++ b/leo_ast/expressions/cast/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions::cast - Rust Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
§Unary(UnaryExpression)
An unary expression.
§Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
source§fn clone(&self) -> Expression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
source§impl Eq for Expression
source§impl StructuralPartialEq for Expression
Auto Trait Implementations§
§impl Freeze for Expression
§impl RefUnwindSafe for Expression
§impl Send for Expression
§impl Sync for Expression
§impl Unpin for Expression
§impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
Struct leo_ast::expressions::call::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function, either a member of a structure or a free function.
arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
span: Span
Span of the entire call function(arguments)
.
program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
span: Span
Span of the entire call function(arguments)
.
id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
fn clone(&self) -> CallExpression
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CallExpression
impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
impl<'de> Deserialize<'de> for CallExpression
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>,
source§impl Display for CallExpression
impl Display for CallExpression
source§impl Node for CallExpression
impl Node for CallExpression
source§impl PartialEq for CallExpression
impl PartialEq for CallExpression
source§impl Display for CallExpression
impl Display for CallExpression
source§impl Node for CallExpression
impl Node for CallExpression
source§impl PartialEq for CallExpression
impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
fn eq(&self, other: &CallExpression) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
impl Serialize for CallExpression
impl Eq for CallExpression
impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
impl Freeze for CallExpression
impl RefUnwindSafe for CallExpression
impl Send for CallExpression
impl Sync for CallExpression
impl Unpin for CallExpression
impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html
index 59684ab601..af6a90da32 100644
--- a/leo_ast/expressions/cast/struct.CastExpression.html
+++ b/leo_ast/expressions/cast/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions::cast - Rust Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
§Unary(UnaryExpression)
An unary expression.
§Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
source§fn clone(&self) -> Expression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
source§impl Eq for Expression
source§impl StructuralPartialEq for Expression
Auto Trait Implementations§
§impl Freeze for Expression
§impl RefUnwindSafe for Expression
§impl Send for Expression
§impl Sync for Expression
§impl Unpin for Expression
§impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
impl<T> Any for Twhere
diff --git a/leo_ast/expressions/cast/struct.CastExpression.html b/leo_ast/expressions/cast/struct.CastExpression.html
index 59684ab601..af6a90da32 100644
--- a/leo_ast/expressions/cast/struct.CastExpression.html
+++ b/leo_ast/expressions/cast/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions::cast - Rust Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§impl Display for AccessExpression
source§impl Node for AccessExpression
source§impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
source§impl Eq for AccessExpression
source§impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
§impl Freeze for AccessExpression
§impl RefUnwindSafe for AccessExpression
§impl Send for AccessExpression
§impl Sync for AccessExpression
§impl Unpin for AccessExpression
§impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
§Unary(UnaryExpression)
An unary expression.
§Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
source§fn clone(&self) -> Expression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§impl Display for Expression
source§impl Node for Expression
source§impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
source§impl Eq for Expression
source§impl StructuralPartialEq for Expression
Auto Trait Implementations§
§impl Freeze for Expression
§impl RefUnwindSafe for Expression
§impl Send for Expression
§impl Sync for Expression
§impl Unpin for Expression
§impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
Struct leo_ast::expressions::cast::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
span: Span
Span of the entire cast 42u8 as u16
.
span: Span
Span of the entire cast 42u8 as u16
.
id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
fn clone(&self) -> CastExpression
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CastExpression
impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
impl<'de> Deserialize<'de> for CastExpression
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>,
source§impl Display for CastExpression
impl Display for CastExpression
source§impl Node for CastExpression
impl Node for CastExpression
source§impl PartialEq for CastExpression
impl PartialEq for CastExpression
source§impl Display for CastExpression
impl Display for CastExpression
source§impl Node for CastExpression
impl Node for CastExpression
source§impl PartialEq for CastExpression
impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
fn eq(&self, other: &CastExpression) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
impl Serialize for CastExpression
impl Eq for CastExpression
impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
impl Freeze for CastExpression
impl RefUnwindSafe for CastExpression
impl Send for CastExpression
impl Sync for CastExpression
impl Unpin for CastExpression
impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.AccessExpression.html b/leo_ast/expressions/enum.AccessExpression.html
index 79bdf67d86..021fbd6ebd 100644
--- a/leo_ast/expressions/enum.AccessExpression.html
+++ b/leo_ast/expressions/enum.AccessExpression.html
@@ -11,7 +11,7 @@
§Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
§Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Member(MemberAccess)
An expression accessing a field in a structure, e.g., struct_var.field
.
Tuple(TupleAccess)
Access to a tuple field using its position, e.g., tuple.1
.
Trait Implementations§
source§impl Clone for AccessExpression
impl Clone for AccessExpression
source§fn clone(&self) -> AccessExpression
fn clone(&self) -> AccessExpression
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AccessExpression
impl Debug for AccessExpression
source§impl<'de> Deserialize<'de> for AccessExpression
impl<'de> Deserialize<'de> for AccessExpression
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>,
source§impl Display for AccessExpression
impl Display for AccessExpression
source§impl Node for AccessExpression
impl Node for AccessExpression
source§impl PartialEq for AccessExpression
impl PartialEq for AccessExpression
source§impl Display for AccessExpression
impl Display for AccessExpression
source§impl Node for AccessExpression
impl Node for AccessExpression
source§impl PartialEq for AccessExpression
impl PartialEq for AccessExpression
source§fn eq(&self, other: &AccessExpression) -> bool
fn eq(&self, other: &AccessExpression) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AccessExpression
impl Serialize for AccessExpression
impl Eq for AccessExpression
impl StructuralPartialEq for AccessExpression
Auto Trait Implementations§
impl Freeze for AccessExpression
impl RefUnwindSafe for AccessExpression
impl Send for AccessExpression
impl Sync for AccessExpression
impl Unpin for AccessExpression
impl UnwindSafe for AccessExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.BinaryOperation.html b/leo_ast/expressions/enum.BinaryOperation.html
index c676042565..ee6293c35e 100644
--- a/leo_ast/expressions/enum.BinaryOperation.html
+++ b/leo_ast/expressions/enum.BinaryOperation.html
@@ -61,7 +61,7 @@
§Sub
Subtraction, i.e. -
, .sub()
.
§SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
§Xor
Bitwise XOR, i.e. .xor()
.
-
Sub
Subtraction, i.e. -
, .sub()
.
SubWrapped
Wrapped subtraction, i.e. .sub_wrapped()
.
Xor
Bitwise XOR, i.e. .xor()
.
Implementations§
source§impl BinaryOperation
impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
pub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
+
Implementations§
source§impl BinaryOperation
impl BinaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
pub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a BinaryOperation
from the given Symbol
.
This is used to resolve native operators invoked as method calls, e.g. a.add_wrapped(b)
.
Trait Implementations§
source§impl Clone for BinaryOperation
impl Clone for BinaryOperation
source§fn clone(&self) -> BinaryOperation
fn clone(&self) -> BinaryOperation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BinaryOperation
impl Debug for BinaryOperation
source§impl<'de> Deserialize<'de> for BinaryOperation
impl<'de> Deserialize<'de> for BinaryOperation
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>,
source§impl Display for BinaryOperation
impl Display for BinaryOperation
source§impl PartialEq for BinaryOperation
impl PartialEq for BinaryOperation
source§fn eq(&self, other: &BinaryOperation) -> bool
fn eq(&self, other: &BinaryOperation) -> bool
self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/enum.Expression.html b/leo_ast/expressions/enum.Expression.html
index 8b91e46b7c..d78f74c8c0 100644
--- a/leo_ast/expressions/enum.Expression.html
+++ b/leo_ast/expressions/enum.Expression.html
@@ -30,7 +30,7 @@
Unary(UnaryExpression)
An unary expression.
Unit(UnitExpression)
A unit expression e.g. ()
Trait Implementations§
source§impl Clone for Expression
impl Clone for Expression
source§fn clone(&self) -> Expression
fn clone(&self) -> Expression
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Expression
impl Debug for Expression
source§impl<'de> Deserialize<'de> for Expression
impl<'de> Deserialize<'de> for Expression
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>,
source§impl Display for Expression
impl Display for Expression
source§impl Node for Expression
impl Node for Expression
source§impl PartialEq for Expression
impl PartialEq for Expression
source§impl Display for Expression
impl Display for Expression
source§impl Node for Expression
impl Node for Expression
source§impl PartialEq for Expression
impl PartialEq for Expression
source§fn eq(&self, other: &Expression) -> bool
fn eq(&self, other: &Expression) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Expression
impl Serialize for Expression
impl Eq for Expression
impl StructuralPartialEq for Expression
Auto Trait Implementations§
impl Freeze for Expression
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
impl<T> Any for Twhere
diff --git a/leo_ast/expressions/enum.Literal.html b/leo_ast/expressions/enum.Literal.html
index ce66471dce..419685802e 100644
--- a/leo_ast/expressions/enum.Literal.html
+++ b/leo_ast/expressions/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions - Rust Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
Implementations§
source§impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
+Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
This method tests for self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions::err - Rust Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
Enum leo_ast::expressions::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
impl<'de> Deserialize<'de> for Literal
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>,
source§impl PartialEq for Literal
impl PartialEq for Literal
impl Eq for Literal
impl StructuralPartialEq for Literal
Auto Trait Implementations§
impl Freeze for Literal
impl RefUnwindSafe for Literal
impl Send for Literal
impl Sync for Literal
impl Unpin for Literal
impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/enum.UnaryOperation.html b/leo_ast/expressions/enum.UnaryOperation.html
index 253edb7816..306ee3878e 100644
--- a/leo_ast/expressions/enum.UnaryOperation.html
+++ b/leo_ast/expressions/enum.UnaryOperation.html
@@ -20,7 +20,7 @@
§SquareRoot
Square root operation, i.e. .sqrt()
.
§ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
§ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
-
SquareRoot
Square root operation, i.e. .sqrt()
.
ToXCoordinate
Converts a group element to its x-coordinate, i.e. .to_x_coordinate()
.
ToYCoordinate
Converts a group element to its y-coordinate, i.e. .to_y_coordinate()
.
Implementations§
source§impl UnaryOperation
impl UnaryOperation
sourcepub fn from_symbol(symbol: Symbol) -> Option<Self>
pub fn from_symbol(symbol: Symbol) -> Option<Self>
Returns a UnaryOperation
from the given Symbol
.
Implementations§
Trait Implementations§
source§impl Clone for UnaryOperation
impl Clone for UnaryOperation
source§fn clone(&self) -> UnaryOperation
fn clone(&self) -> UnaryOperation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UnaryOperation
impl Debug for UnaryOperation
source§impl<'de> Deserialize<'de> for UnaryOperation
impl<'de> Deserialize<'de> for UnaryOperation
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>,
source§impl PartialEq for UnaryOperation
impl PartialEq for UnaryOperation
source§fn eq(&self, other: &UnaryOperation) -> bool
fn eq(&self, other: &UnaryOperation) -> bool
self
and other
values to be equal, and is used
diff --git a/leo_ast/expressions/err/struct.ErrExpression.html b/leo_ast/expressions/err/struct.ErrExpression.html
index b933580e05..33f57af547 100644
--- a/leo_ast/expressions/err/struct.ErrExpression.html
+++ b/leo_ast/expressions/err/struct.ErrExpression.html
@@ -1,11 +1,11 @@
Struct leo_ast::expressions::err::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
fn clone(&self) -> ErrExpression
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ErrExpression
impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
impl<'de> Deserialize<'de> for ErrExpression
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>,
source§impl Display for ErrExpression
impl Display for ErrExpression
source§impl Node for ErrExpression
impl Node for ErrExpression
source§impl PartialEq for ErrExpression
impl PartialEq for ErrExpression
source§impl Display for ErrExpression
impl Display for ErrExpression
source§impl Node for ErrExpression
impl Node for ErrExpression
source§impl PartialEq for ErrExpression
impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
fn eq(&self, other: &ErrExpression) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
impl Serialize for ErrExpression
impl Eq for ErrExpression
impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
impl Freeze for ErrExpression
impl RefUnwindSafe for ErrExpression
impl Send for ErrExpression
impl Sync for ErrExpression
impl Unpin for ErrExpression
impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
impl<T> Any for Twhere
diff --git a/leo_ast/expressions/literal/enum.Literal.html b/leo_ast/expressions/literal/enum.Literal.html
index 4d514b00f7..b0f6952b23 100644
--- a/leo_ast/expressions/literal/enum.Literal.html
+++ b/leo_ast/expressions/literal/enum.Literal.html
@@ -1,27 +1,27 @@
Literal in leo_ast::expressions::literal - Rust Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
-§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
-§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
§Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
+§Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
+§Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
§Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
-§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
-§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
§Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
+§Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
-§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
+§String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for Literal
source§impl Eq for Literal
source§impl StructuralPartialEq for Literal
Auto Trait Implementations§
§impl Freeze for Literal
§impl RefUnwindSafe for Literal
§impl Send for Literal
§impl Sync for Literal
§impl Unpin for Literal
§impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
Enum leo_ast::expressions::literal::Literal
source · pub enum Literal {
- Address(String, Span, NodeID),
- Boolean(bool, Span, NodeID),
- Field(String, Span, NodeID),
+ Address(String, Span, NodeID),
+ Boolean(bool, Span, NodeID),
+ Field(String, Span, NodeID),
Group(Box<GroupLiteral>),
- Integer(IntegerType, String, Span, NodeID),
- Scalar(String, Span, NodeID),
- String(String, Span, NodeID),
+ Integer(IntegerType, String, Span, NodeID),
+ Scalar(String, Span, NodeID),
+ String(String, Span, NodeID),
}
Expand description
A literal.
-Variants§
Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
Field(String, Span, NodeID)
A field literal, e.g., 42field
.
+
Variants§
Address(String, Span, NodeID)
An address literal, e.g., aleo1qnr4dkkvkgfqph0vzc3y6z2eu975wnpz2925ntjccd5cfqxtyu8s7pyjh9
or hello.aleo
.
Boolean(bool, Span, NodeID)
A boolean literal, either true
or false
.
Field(String, Span, NodeID)
A field literal, e.g., 42field
.
A signed number followed by the keyword field
.
Group(Box<GroupLiteral>)
A group literal, either product or affine.
For example, 42group
or (12, 52)group
.
Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
+
Integer(IntegerType, String, Span, NodeID)
An integer literal, e.g., 42
.
Scalar(String, Span, NodeID)
A scalar literal, e.g. 1scalar
.
An unsigned number followed by the keyword scalar
.
String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
String(String, Span, NodeID)
A string literal, e.g., "foobar"
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Literal
impl<'de> Deserialize<'de> for Literal
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>,
source§impl PartialEq for Literal
impl PartialEq for Literal
impl Eq for Literal
impl StructuralPartialEq for Literal
Auto Trait Implementations§
impl Freeze for Literal
impl RefUnwindSafe for Literal
impl Send for Literal
impl Sync for Literal
impl Unpin for Literal
impl UnwindSafe for Literal
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
impl<T> BorrowMut<T> for Twhere
diff --git a/leo_ast/expressions/locator/struct.LocatorExpression.html b/leo_ast/expressions/locator/struct.LocatorExpression.html
index 7a9be11463..801bb0ba14 100644
--- a/leo_ast/expressions/locator/struct.LocatorExpression.html
+++ b/leo_ast/expressions/locator/struct.LocatorExpression.html
@@ -1,19 +1,19 @@
LocatorExpression in leo_ast::expressions::locator - Rust Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-§name: Symbol
The name of the resource.
-§span: Span
A span indicating where the locator occurred in the source.
+§name: Symbol
The name of the resource.
+§span: Span
A span indicating where the locator occurred in the source.
§id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
+Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for LocatorExpression
source§impl Hash for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
source§impl Copy for LocatorExpression
source§impl Eq for LocatorExpression
source§impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
§impl Freeze for LocatorExpression
§impl RefUnwindSafe for LocatorExpression
§impl Send for LocatorExpression
§impl Sync for LocatorExpression
§impl Unpin for LocatorExpression
§impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
Struct leo_ast::expressions::locator::LocatorExpression
source · pub struct LocatorExpression {
pub program: ProgramId,
- pub name: Symbol,
- pub span: Span,
+ pub name: Symbol,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A locator that references an external resource.
Fields§
§program: ProgramId
The program that the resource is in.
-name: Symbol
The name of the resource.
-span: Span
A span indicating where the locator occurred in the source.
+name: Symbol
The name of the resource.
+span: Span
A span indicating where the locator occurred in the source.
id: NodeID
The ID of the node.
-Implementations§
source§impl LocatorExpression
impl LocatorExpression
sourcepub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
pub fn new(program: ProgramId, name: Symbol, id: NodeID) -> Self
Constructs a new Locator with name
, program
and id
and a default span.
Implementations§
Trait Implementations§
source§impl Clone for LocatorExpression
impl Clone for LocatorExpression
source§fn clone(&self) -> LocatorExpression
fn clone(&self) -> LocatorExpression
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LocatorExpression
impl Debug for LocatorExpression
source§impl<'de> Deserialize<'de> for LocatorExpression
impl<'de> Deserialize<'de> for LocatorExpression
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>,
source§impl Display for LocatorExpression
impl Display for LocatorExpression
source§impl Hash for LocatorExpression
impl Hash for LocatorExpression
source§impl Node for LocatorExpression
impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
impl PartialEq for LocatorExpression
source§impl Node for LocatorExpression
impl Node for LocatorExpression
source§impl PartialEq for LocatorExpression
impl PartialEq for LocatorExpression
source§fn eq(&self, other: &LocatorExpression) -> bool
fn eq(&self, other: &LocatorExpression) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocatorExpression
impl Serialize for LocatorExpression
impl Copy for LocatorExpression
impl Eq for LocatorExpression
impl StructuralPartialEq for LocatorExpression
Auto Trait Implementations§
impl Freeze for LocatorExpression
impl RefUnwindSafe for LocatorExpression
impl Send for LocatorExpression
impl Sync for LocatorExpression
impl Unpin for LocatorExpression
impl UnwindSafe for LocatorExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ArrayExpression.html b/leo_ast/expressions/struct.ArrayExpression.html
index 58ec689a24..cb253da199 100644
--- a/leo_ast/expressions/struct.ArrayExpression.html
+++ b/leo_ast/expressions/struct.ArrayExpression.html
@@ -1,13 +1,13 @@
ArrayExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-§span: Span
The span from [
to ]
.
+§span: Span
The span from [
to ]
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
source§impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
source§impl Eq for ArrayExpression
source§impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
§impl Freeze for ArrayExpression
§impl RefUnwindSafe for ArrayExpression
§impl Send for ArrayExpression
§impl Sync for ArrayExpression
§impl Unpin for ArrayExpression
§impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
Struct leo_ast::expressions::ArrayExpression
source · pub struct ArrayExpression {
pub elements: Vec<Expression>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
An array expression, e.g., [true, false, true, false]
.
Fields§
§elements: Vec<Expression>
The elements of the array.
-span: Span
The span from [
to ]
.
span: Span
The span from [
to ]
.
id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ArrayExpression
impl Clone for ArrayExpression
source§fn clone(&self) -> ArrayExpression
fn clone(&self) -> ArrayExpression
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ArrayExpression
impl Debug for ArrayExpression
source§impl<'de> Deserialize<'de> for ArrayExpression
impl<'de> Deserialize<'de> for ArrayExpression
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>,
source§impl Display for ArrayExpression
impl Display for ArrayExpression
source§impl Node for ArrayExpression
impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
impl PartialEq for ArrayExpression
source§impl Display for ArrayExpression
impl Display for ArrayExpression
source§impl Node for ArrayExpression
impl Node for ArrayExpression
source§impl PartialEq for ArrayExpression
impl PartialEq for ArrayExpression
source§fn eq(&self, other: &ArrayExpression) -> bool
fn eq(&self, other: &ArrayExpression) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ArrayExpression
impl Serialize for ArrayExpression
impl Eq for ArrayExpression
impl StructuralPartialEq for ArrayExpression
Auto Trait Implementations§
impl Freeze for ArrayExpression
impl RefUnwindSafe for ArrayExpression
impl Send for ArrayExpression
impl Sync for ArrayExpression
impl Unpin for ArrayExpression
impl UnwindSafe for ArrayExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.BinaryExpression.html b/leo_ast/expressions/struct.BinaryExpression.html
index 2730c99bdd..b526918d03 100644
--- a/leo_ast/expressions/struct.BinaryExpression.html
+++ b/leo_ast/expressions/struct.BinaryExpression.html
@@ -2,17 +2,17 @@
pub left: Box<Expression>,
pub right: Box<Expression>,
pub op: BinaryOperation,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
§right: Box<Expression>
The right operand of the expression.
§op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-§span: Span
The span from left
to right
.
+§span: Span
The span from left
to right
.
§id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
source§impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
source§impl Eq for BinaryExpression
source§impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
§impl Freeze for BinaryExpression
§impl RefUnwindSafe for BinaryExpression
§impl Send for BinaryExpression
§impl Sync for BinaryExpression
§impl Unpin for BinaryExpression
§impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
Expand description
A binary expression left op right
of two operands separated by some operator.
For example, foo + bar
.
Fields§
§left: Box<Expression>
The left operand of the expression.
right: Box<Expression>
The right operand of the expression.
op: BinaryOperation
The operand defining the meaning of the resulting binary expression.
-span: Span
The span from left
to right
.
span: Span
The span from left
to right
.
id: NodeID
The ID of the expression.
Trait Implementations§
source§impl Clone for BinaryExpression
impl Clone for BinaryExpression
source§fn clone(&self) -> BinaryExpression
fn clone(&self) -> BinaryExpression
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BinaryExpression
impl Debug for BinaryExpression
source§impl<'de> Deserialize<'de> for BinaryExpression
impl<'de> Deserialize<'de> for BinaryExpression
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>,
source§impl Display for BinaryExpression
impl Display for BinaryExpression
source§impl Node for BinaryExpression
impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
impl PartialEq for BinaryExpression
source§impl Display for BinaryExpression
impl Display for BinaryExpression
source§impl Node for BinaryExpression
impl Node for BinaryExpression
source§impl PartialEq for BinaryExpression
impl PartialEq for BinaryExpression
source§fn eq(&self, other: &BinaryExpression) -> bool
fn eq(&self, other: &BinaryExpression) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BinaryExpression
impl Serialize for BinaryExpression
impl Eq for BinaryExpression
impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations§
impl Freeze for BinaryExpression
impl RefUnwindSafe for BinaryExpression
impl Send for BinaryExpression
impl Sync for BinaryExpression
impl Unpin for BinaryExpression
impl UnwindSafe for BinaryExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CallExpression.html b/leo_ast/expressions/struct.CallExpression.html
index 21be09c8f2..22432d153f 100644
--- a/leo_ast/expressions/struct.CallExpression.html
+++ b/leo_ast/expressions/struct.CallExpression.html
@@ -1,18 +1,18 @@
CallExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function,
either a member of a structure or a free function.
§arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
-§span: Span
Span of the entire call function(arguments)
.
+§program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
+§span: Span
Span of the entire call function(arguments)
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§impl Display for CallExpression
source§impl Node for CallExpression
source§impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
source§impl Eq for CallExpression
source§impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
§impl Freeze for CallExpression
§impl RefUnwindSafe for CallExpression
§impl Send for CallExpression
§impl Sync for CallExpression
§impl Unpin for CallExpression
§impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
Struct leo_ast::expressions::CallExpression
source · pub struct CallExpression {
pub function: Box<Expression>,
pub arguments: Vec<Expression>,
- pub program: Option<Symbol>,
- pub span: Span,
+ pub program: Option<Symbol>,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A function call expression, e.g.foo(args)
or Foo::bar(args)
.
Fields§
§function: Box<Expression>
An expression evaluating to a callable function, either a member of a structure or a free function.
arguments: Vec<Expression>
Expressions for the arguments passed to the functions parameters.
-program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
span: Span
Span of the entire call function(arguments)
.
program: Option<Symbol>
The name of the parent program call, e.g.bar
in bar.aleo
.
span: Span
Span of the entire call function(arguments)
.
id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CallExpression
impl Clone for CallExpression
source§fn clone(&self) -> CallExpression
fn clone(&self) -> CallExpression
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CallExpression
impl Debug for CallExpression
source§impl<'de> Deserialize<'de> for CallExpression
impl<'de> Deserialize<'de> for CallExpression
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>,
source§impl Display for CallExpression
impl Display for CallExpression
source§impl Node for CallExpression
impl Node for CallExpression
source§impl PartialEq for CallExpression
impl PartialEq for CallExpression
source§impl Display for CallExpression
impl Display for CallExpression
source§impl Node for CallExpression
impl Node for CallExpression
source§impl PartialEq for CallExpression
impl PartialEq for CallExpression
source§fn eq(&self, other: &CallExpression) -> bool
fn eq(&self, other: &CallExpression) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CallExpression
impl Serialize for CallExpression
impl Eq for CallExpression
impl StructuralPartialEq for CallExpression
Auto Trait Implementations§
impl Freeze for CallExpression
impl RefUnwindSafe for CallExpression
impl Send for CallExpression
impl Sync for CallExpression
impl Unpin for CallExpression
impl UnwindSafe for CallExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.CastExpression.html b/leo_ast/expressions/struct.CastExpression.html
index 9c396b0a21..55e10f2abc 100644
--- a/leo_ast/expressions/struct.CastExpression.html
+++ b/leo_ast/expressions/struct.CastExpression.html
@@ -1,15 +1,15 @@
CastExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
§type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
-§span: Span
Span of the entire cast 42u8 as u16
.
+§span: Span
Span of the entire cast 42u8 as u16
.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§impl Display for CastExpression
source§impl Node for CastExpression
source§impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
source§impl Eq for CastExpression
source§impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
§impl Freeze for CastExpression
§impl RefUnwindSafe for CastExpression
§impl Send for CastExpression
§impl Sync for CastExpression
§impl Unpin for CastExpression
§impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
Struct leo_ast::expressions::CastExpression
source · pub struct CastExpression {
pub expression: Box<Expression>,
pub type_: Type,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A cast expression, e.g. 42u8 as u16
.
Fields§
§expression: Box<Expression>
The expression to be casted, e.g.42u8
in 42u8 as u16
.
type_: Type
The type to be casted to, e.g. u16
in 42u8 as u16
.
span: Span
Span of the entire cast 42u8 as u16
.
span: Span
Span of the entire cast 42u8 as u16
.
id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for CastExpression
impl Clone for CastExpression
source§fn clone(&self) -> CastExpression
fn clone(&self) -> CastExpression
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CastExpression
impl Debug for CastExpression
source§impl<'de> Deserialize<'de> for CastExpression
impl<'de> Deserialize<'de> for CastExpression
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>,
source§impl Display for CastExpression
impl Display for CastExpression
source§impl Node for CastExpression
impl Node for CastExpression
source§impl PartialEq for CastExpression
impl PartialEq for CastExpression
source§impl Display for CastExpression
impl Display for CastExpression
source§impl Node for CastExpression
impl Node for CastExpression
source§impl PartialEq for CastExpression
impl PartialEq for CastExpression
source§fn eq(&self, other: &CastExpression) -> bool
fn eq(&self, other: &CastExpression) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CastExpression
impl Serialize for CastExpression
impl Eq for CastExpression
impl StructuralPartialEq for CastExpression
Auto Trait Implementations§
impl Freeze for CastExpression
impl RefUnwindSafe for CastExpression
impl Send for CastExpression
impl Sync for CastExpression
impl Unpin for CastExpression
impl UnwindSafe for CastExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.ErrExpression.html b/leo_ast/expressions/struct.ErrExpression.html
index 417502d60d..c29d04109d 100644
--- a/leo_ast/expressions/struct.ErrExpression.html
+++ b/leo_ast/expressions/struct.ErrExpression.html
@@ -1,11 +1,11 @@
ErrExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
§id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§impl Display for ErrExpression
source§impl Node for ErrExpression
source§impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
source§impl Eq for ErrExpression
source§impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
§impl Freeze for ErrExpression
§impl RefUnwindSafe for ErrExpression
§impl Send for ErrExpression
§impl Sync for ErrExpression
§impl Unpin for ErrExpression
§impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
Struct leo_ast::expressions::ErrExpression
source · pub struct ErrExpression {
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
Represents a syntactically invalid expression.
-Fields§
§span: Span
The span of the invalid expression.
+Fields§
§span: Span
The span of the invalid expression.
id: NodeID
The ID of the node.
Trait Implementations§
source§impl Clone for ErrExpression
impl Clone for ErrExpression
source§fn clone(&self) -> ErrExpression
fn clone(&self) -> ErrExpression
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ErrExpression
impl Debug for ErrExpression
source§impl<'de> Deserialize<'de> for ErrExpression
impl<'de> Deserialize<'de> for ErrExpression
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>,
source§impl Display for ErrExpression
impl Display for ErrExpression
source§impl Node for ErrExpression
impl Node for ErrExpression
source§impl PartialEq for ErrExpression
impl PartialEq for ErrExpression
source§impl Display for ErrExpression
impl Display for ErrExpression
source§impl Node for ErrExpression
impl Node for ErrExpression
source§impl PartialEq for ErrExpression
impl PartialEq for ErrExpression
source§fn eq(&self, other: &ErrExpression) -> bool
fn eq(&self, other: &ErrExpression) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ErrExpression
impl Serialize for ErrExpression
impl Eq for ErrExpression
impl StructuralPartialEq for ErrExpression
Auto Trait Implementations§
impl Freeze for ErrExpression
impl RefUnwindSafe for ErrExpression
impl Send for ErrExpression
impl Sync for ErrExpression
impl Unpin for ErrExpression
impl UnwindSafe for ErrExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructExpression.html b/leo_ast/expressions/struct.StructExpression.html
index 5cc477d50b..a0f9e1d694 100644
--- a/leo_ast/expressions/struct.StructExpression.html
+++ b/leo_ast/expressions/struct.StructExpression.html
@@ -1,19 +1,19 @@
StructExpression in leo_ast::expressions - Rust Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
§members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition
are excluded from this list.
-§span: Span
A span from name
to }
.
+§span: Span
A span from name
to }
.
§id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
sourcepub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§impl Display for StructExpression
source§impl Node for StructExpression
source§impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
.source§impl Serialize for StructExpression
source§impl Eq for StructExpression
source§impl StructuralPartialEq for StructExpression
Auto Trait Implementations§
§impl Freeze for StructExpression
§impl RefUnwindSafe for StructExpression
§impl Send for StructExpression
§impl Sync for StructExpression
§impl Unpin for StructExpression
§impl UnwindSafe for StructExpression
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/leo_ast/expressions/struct.StructVariableInitializer.html b/leo_ast/expressions/struct.StructVariableInitializer.html
index cc997f3314..0235f919f7 100644
--- a/leo_ast/expressions/struct.StructVariableInitializer.html
+++ b/leo_ast/expressions/struct.StructVariableInitializer.html
@@ -1,17 +1,17 @@
StructVariableInitializer in leo_ast::expressions - Rust Struct leo_ast::expressions::
Struct leo_ast::expressions::StructExpression
source · pub struct StructExpression {
pub name: Identifier,
pub members: Vec<StructVariableInitializer>,
- pub span: Span,
+ pub span: Span,
pub id: NodeID,
}
Expand description
A struct initialization expression, e.g., Foo { bar: 42, baz }
.
Fields§
§name: Identifier
The name of the structure type to initialize.
members: Vec<StructVariableInitializer>
Initializer expressions for each of the fields in the struct.
N.B. Any functions or member constants in the struct definition are excluded from this list.
-span: Span
A span from name
to }
.
span: Span
A span from name
to }
.
id: NodeID
The ID of the node.
Implementations§
source§impl StructExpression
impl StructExpression
sourcepub fn check_record(&self) -> bool
pub fn check_record(&self) -> bool
Returns true if the record has all required fields and visibility.
sourcepub fn to_record_string(&self) -> String
pub fn to_record_string(&self) -> String
Returns the struct as a record interface with visibility.
Trait Implementations§
source§impl Clone for StructExpression
impl Clone for StructExpression
source§fn clone(&self) -> StructExpression
fn clone(&self) -> StructExpression
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for StructExpression
impl Debug for StructExpression
source§impl<'de> Deserialize<'de> for StructExpression
impl<'de> Deserialize<'de> for StructExpression
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>,
source§impl Display for StructExpression
impl Display for StructExpression
source§impl Node for StructExpression
impl Node for StructExpression
source§impl PartialEq for StructExpression
impl PartialEq for StructExpression
source§impl Display for StructExpression
impl Display for StructExpression
source§impl Node for StructExpression
impl Node for StructExpression
source§impl PartialEq for StructExpression
impl PartialEq for StructExpression
source§fn eq(&self, other: &StructExpression) -> bool
fn eq(&self, other: &StructExpression) -> bool
self
and other
values to be equal, and is used
by ==
.