Struct cop::app::App[][src]

pub struct App<H, A>(_, _);

Application of argument(s) to a head.

Implementations

impl<H, A> App<H, A>[src]

pub fn new(head: H, args: A) -> Self[src]

pub fn head(&self) -> &H[src]

pub fn args(&self) -> &A[src]

pub fn map_args<B>(self, f: impl FnOnce(A) -> B) -> App<H, B>[src]

impl<P, C, V: Ord> App<P, Args<Term<C, V>>>[src]

pub fn max_var(&self) -> Option<&V>[src]

Trait Implementations

impl<H: Clone, A: Clone> Clone for App<H, A>[src]

impl<H: Debug, A: Debug> Debug for App<H, A>[src]

impl<H: Display, A: Display> Display for App<H, A>[src]

impl<H: Eq, A: Eq> Eq for App<H, A>[src]

impl<H: Neg<Output = H>, A> Neg for App<H, A>[src]

type Output = Self

The resulting type after applying the - operator.

impl<H: PartialEq, A: PartialEq> PartialEq<App<H, A>> for App<H, A>[src]

impl<H, A> StructuralEq for App<H, A>[src]

impl<H, A> StructuralPartialEq for App<H, A>[src]

Auto Trait Implementations

impl<H, A> RefUnwindSafe for App<H, A> where
    A: RefUnwindSafe,
    H: RefUnwindSafe

impl<H, A> Send for App<H, A> where
    A: Send,
    H: Send

impl<H, A> Sync for App<H, A> where
    A: Sync,
    H: Sync

impl<H, A> Unpin for App<H, A> where
    A: Unpin,
    H: Unpin

impl<H, A> UnwindSafe for App<H, A> where
    A: UnwindSafe,
    H: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.