pub enum TypeLocation<'a> {
ReducerArg {
reducer_name: Cow<'a, str>,
position: usize,
arg_name: Option<Cow<'a, str>>,
},
InTypespace {
ref_: AlgebraicTypeRef,
},
}Expand description
A place a type can be located in a module.
Variants§
ReducerArg
A reducer argument.
InTypespace
A type in the typespace.
Fields
§
ref_: AlgebraicTypeRefThe reference to the type within the typespace.
Implementations§
Source§impl TypeLocation<'_>
impl TypeLocation<'_>
Sourcepub fn make_static(self) -> TypeLocation<'static>
pub fn make_static(self) -> TypeLocation<'static>
Make the lifetime of the location 'static.
This allocates.
Trait Implementations§
Source§impl<'a> Clone for TypeLocation<'a>
impl<'a> Clone for TypeLocation<'a>
Source§fn clone(&self) -> TypeLocation<'a>
fn clone(&self) -> TypeLocation<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for TypeLocation<'a>
impl<'a> Debug for TypeLocation<'a>
Source§impl Display for TypeLocation<'_>
impl Display for TypeLocation<'_>
Source§impl<'a> Ord for TypeLocation<'a>
impl<'a> Ord for TypeLocation<'a>
Source§fn cmp(&self, other: &TypeLocation<'a>) -> Ordering
fn cmp(&self, other: &TypeLocation<'a>) -> 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<'a> PartialEq for TypeLocation<'a>
impl<'a> PartialEq for TypeLocation<'a>
Source§impl<'a> PartialOrd for TypeLocation<'a>
impl<'a> PartialOrd for TypeLocation<'a>
impl<'a> Eq for TypeLocation<'a>
impl<'a> StructuralPartialEq for TypeLocation<'a>
Auto Trait Implementations§
impl<'a> Freeze for TypeLocation<'a>
impl<'a> RefUnwindSafe for TypeLocation<'a>
impl<'a> Send for TypeLocation<'a>
impl<'a> Sync for TypeLocation<'a>
impl<'a> Unpin for TypeLocation<'a>
impl<'a> UnwindSafe for TypeLocation<'a>
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more