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

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

An environment module for setting and getting shell functions.

Uses Arc internally. If Send and Sync is not required of the implementation, see env::FnEnv as a cheaper alternative.

Methods

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

Constructs a new FnEnv with no defined functions.

Trait Implementations

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

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

Formats the value using the given formatter. Read more

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

Returns the "default value" for a type. Read more

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Create a new sub-environment, which starts out idential to its parent, but any changes on the new environment will not be reflected on the parent. Read more

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

The name to be associated with a function.

The type of the function.

Get a particularly named function if it was registered.

Register a shell function with a given name.

Check if a particularly named function was registered.

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

Removes the definition of a function if it was registered.

Auto Trait Implementations

impl<N, F> Send for AtomicFnEnv<N, F> where
    F: Send + Sync,
    N: Send + Sync

impl<N, F> Sync for AtomicFnEnv<N, F> where
    F: Send + Sync,
    N: Send + Sync