pub enum Relevance {
Relevant,
NonStrict,
Irrelevant,
}Expand description
A function argument can be relevant or irrelevant. See “Agda.TypeChecking.Irrelevance”.
Variants§
Relevant
The argument is (possibly) relevant at compile-time.
NonStrict
The argument may never flow into evaluation position. Therefore, it is irrelevant at run-time. It is treated relevantly during equality checking.
Irrelevant
The argument is irrelevant at compile- and runtime.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Relevance
impl<'de> Deserialize<'de> for Relevance
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Relevance
impl Ord for Relevance
Source§impl PartialOrd for Relevance
impl PartialOrd for Relevance
impl Copy for Relevance
impl Eq for Relevance
impl StructuralPartialEq for Relevance
Auto Trait Implementations§
impl Freeze for Relevance
impl RefUnwindSafe for Relevance
impl Send for Relevance
impl Sync for Relevance
impl Unpin for Relevance
impl UnwindSafe for Relevance
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<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