[−][src]Struct kontroli::Arg
Argument of a binder.
For example, the x
and A
in the term \ x : A => t
.
Fields
id: Id
ty: Ty
Implementations
impl<'s, Id> Arg<Id, Option<RTerm<'s>>>
[src]
pub fn type_ptr_eq(&self, other: &Self) -> bool
[src]
Compare the memory addresses of the argument types.
impl<'s, Id> Arg<Id, Option<RTerm<'s>>>
[src]
pub fn type_ptr_eq(&self, other: &Self) -> bool
[src]
Compare the memory addresses of the argument types.
impl<Id, Ty> Arg<Id, Ty>
[src]
pub fn map_id<F, J>(self, f: F) -> Arg<J, Ty> where
F: FnOnce(Id) -> J,
[src]
F: FnOnce(Id) -> J,
pub fn map_ty<F, U>(self, f: F) -> Arg<Id, U> where
F: FnOnce(Ty) -> U,
[src]
F: FnOnce(Ty) -> U,
pub fn map_ty_res<F, U, E>(self, f: F) -> Result<Arg<Id, U>, E> where
F: FnOnce(Ty) -> Result<U, E>,
[src]
F: FnOnce(Ty) -> Result<U, E>,
Trait Implementations
impl<Id: Clone, Ty: Clone> Clone for Arg<Id, Ty>
[src]
impl<Id: Debug, Ty: Debug> Debug for Arg<Id, Ty>
[src]
impl<Id: Eq, Ty: Eq> Eq for Arg<Id, Ty>
[src]
impl<Id: PartialEq, Ty: PartialEq> PartialEq<Arg<Id, Ty>> for Arg<Id, Ty>
[src]
impl<Id, Ty> StructuralEq for Arg<Id, Ty>
[src]
impl<Id, Ty> StructuralPartialEq for Arg<Id, Ty>
[src]
Auto Trait Implementations
impl<Id, Ty> RefUnwindSafe for Arg<Id, Ty> where
Id: RefUnwindSafe,
Ty: RefUnwindSafe,
Id: RefUnwindSafe,
Ty: RefUnwindSafe,
impl<Id, Ty> Send for Arg<Id, Ty> where
Id: Send,
Ty: Send,
Id: Send,
Ty: Send,
impl<Id, Ty> Sync for Arg<Id, Ty> where
Id: Sync,
Ty: Sync,
Id: Sync,
Ty: Sync,
impl<Id, Ty> Unpin for Arg<Id, Ty> where
Id: Unpin,
Ty: Unpin,
Id: Unpin,
Ty: Unpin,
impl<Id, Ty> UnwindSafe for Arg<Id, Ty> where
Id: UnwindSafe,
Ty: UnwindSafe,
Id: UnwindSafe,
Ty: UnwindSafe,
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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>,