[][src]Struct conch_runtime::env::FnEnv

pub struct FnEnv<N: Hash + Eq, F> { /* fields omitted */ }

An environment module for setting and getting shell functions.

Uses Rc internally. For a possible Send and Sync implementation, see env::atomic::FnEnv.

Methods

impl<N: Hash + Eq, F> FnEnv<N, F>[src]

pub fn new() -> Self[src]

Constructs a new FnEnv with no defined functions.

Trait Implementations

impl<N, F> FunctionEnvironment for FnEnv<N, F> where
    N: Clone + Hash + Eq,
    F: Clone
[src]

type FnName = N

The name to be associated with a function.

type Fn = F

The type of the function.

fn has_function(&self, name: &Self::FnName) -> bool[src]

Check if a particularly named function was registered.

impl<N, F> UnsetFunctionEnvironment for FnEnv<N, F> where
    N: Clone + Hash + Eq,
    F: Clone
[src]

impl<N: Hash + Eq, F> SubEnvironment for FnEnv<N, F>[src]

impl<N: Eq + Hash + Eq, F: Eq> Eq for FnEnv<N, F>[src]

impl<N: PartialEq + Hash + Eq, F: PartialEq> PartialEq<FnEnv<N, F>> for FnEnv<N, F>[src]

impl<N: Hash + Eq, F> Clone for FnEnv<N, F>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<N: Hash + Eq, F> Default for FnEnv<N, F>[src]

impl<N, F> Debug for FnEnv<N, F> where
    N: Hash + Eq + Debug + Ord,
    F: Debug
[src]

Auto Trait Implementations

impl<N, F> !Send for FnEnv<N, F>

impl<N, F> !Sync for FnEnv<N, F>

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[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.

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

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

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

impl<T> Erased for T