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

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]

[src]

Constructs a new FnEnv with no defined functions.

Trait Implementations

impl<N: PartialEq + Hash + Eq, F: PartialEq> PartialEq for FnEnv<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 FnEnv<N, F>
[src]

impl<N, F> Debug for FnEnv<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 FnEnv<N, F>
[src]

[src]

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

impl<N: Hash + Eq, F> Clone for FnEnv<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 FnEnv<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 FnEnv<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 FnEnv<N, F> where
    N: Clone + Hash + Eq,
    F: Clone
[src]

[src]

Removes the definition of a function if it was registered.