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]

[src]

Constructs a new FnEnv with no defined functions.

Trait Implementations

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

[src]

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

[src]

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]

[src]

Formats the value using the given formatter.

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

[src]

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

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[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.

[src]

Get a particularly named function if it was registered.

[src]

Register a shell function with a given name.

[src]

Check if a particularly named function was registered.

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

[src]

Removes the definition of a function if it was registered.