[−][src]Enum leo_ast::types::type_::Type
Explicit type used for defining a variable or expression type
Variants
IntegerType(IntegerType)
Array(Box<Type>, ArrayDimensions)
Circuit(Identifier)
Implementations
impl Type
[src]
pub fn is_self(&self) -> bool
[src]
Returns true
if the self Type
is the SelfType
.
pub fn is_circuit(&self) -> bool
[src]
Returns true
if the self Type
is a Circuit
.
pub fn eq_flat(&self, other: &Self) -> bool
[src]
Returns true
if the self Type
is equal to the other Type
.
Flattens array syntax: [[u8; 1]; 2] == [u8; (2, 1)] == true
Trait Implementations
impl Clone for Type
[src]
impl Debug for Type
[src]
impl<'de> Deserialize<'de> for Type
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for Type
[src]
impl Eq for Type
[src]
impl<'ast> From<ArrayType<'ast>> for Type
[src]
impl<'ast> From<ArrayType<'ast>> for Type
[src]
pub fn from(array_type: InputArrayType<'ast>) -> Self
[src]
impl<'ast> From<CircuitType<'ast>> for Type
[src]
pub fn from(circuit_type: CircuitType<'ast>) -> Self
[src]
impl From<DataType> for Type
[src]
pest ast -> Explicit Type for defining circuit members and function params
impl From<DataType> for Type
[src]
input pest ast -> Explicit Type
pub fn from(data_type: InputDataType) -> Self
[src]
impl<'ast> From<TupleType<'ast>> for Type
[src]
impl<'ast> From<TupleType<'ast>> for Type
[src]
pub fn from(tuple_type: InputTupleType<'ast>) -> Self
[src]
impl<'ast> From<Type<'ast>> for Type
[src]
pub fn from(type_: GrammarType<'ast>) -> Self
[src]
impl<'ast> From<Type<'ast>> for Type
[src]
impl Hash for Type
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Type> for Type
[src]
impl Serialize for Type
[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for Type
[src]
impl StructuralPartialEq for Type
[src]
Auto Trait Implementations
impl RefUnwindSafe for Type
[src]
impl Send for Type
[src]
impl Sync for Type
[src]
impl Unpin for Type
[src]
impl UnwindSafe for Type
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,