pub enum TypeLocation {
ReducerArg {
reducer_name: RawIdentifier,
position: usize,
arg_name: Option<RawIdentifier>,
},
ProcedureArg {
procedure_name: RawIdentifier,
position: usize,
arg_name: Option<RawIdentifier>,
},
ViewArg {
view_name: RawIdentifier,
position: usize,
arg_name: Option<RawIdentifier>,
},
ProcedureReturn {
procedure_name: RawIdentifier,
},
ViewReturn {
view_name: RawIdentifier,
},
InTypespace {
ref_: AlgebraicTypeRef,
},
}Expand description
A place a type can be located in a module.
Variants§
ReducerArg
A reducer argument.
ProcedureArg
A procedure argument.
ViewArg
A view argument.
ProcedureReturn
A procedure return type.
Fields
§
procedure_name: RawIdentifierViewReturn
A view return type.
Fields
§
view_name: RawIdentifierInTypespace
A type in the typespace.
Fields
§
ref_: AlgebraicTypeRefThe reference to the type within the typespace.
Trait Implementations§
Source§impl Clone for TypeLocation
impl Clone for TypeLocation
Source§fn clone(&self) -> TypeLocation
fn clone(&self) -> TypeLocation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TypeLocation
impl Debug for TypeLocation
Source§impl Display for TypeLocation
impl Display for TypeLocation
Source§impl Ord for TypeLocation
impl Ord for TypeLocation
Source§fn cmp(&self, other: &TypeLocation) -> Ordering
fn cmp(&self, other: &TypeLocation) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TypeLocation
impl PartialEq for TypeLocation
Source§impl PartialOrd for TypeLocation
impl PartialOrd for TypeLocation
impl Eq for TypeLocation
impl StructuralPartialEq for TypeLocation
Auto Trait Implementations§
impl Freeze for TypeLocation
impl RefUnwindSafe for TypeLocation
impl Send for TypeLocation
impl Sync for TypeLocation
impl Unpin for TypeLocation
impl UnsafeUnpin for TypeLocation
impl UnwindSafe for TypeLocation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToLeanString for Twhere
T: Display,
impl<T> ToLeanString for Twhere
T: Display,
Source§fn try_to_lean_string(&self) -> Result<LeanString, ToLeanStringError>
fn try_to_lean_string(&self) -> Result<LeanString, ToLeanStringError>
Attempts to convert the value to a
LeanString. Read moreSource§fn to_lean_string(&self) -> LeanString
fn to_lean_string(&self) -> LeanString
Converts the value to a
LeanString. Read more