Struct edn::entities::TxFunction [] [src]

pub struct TxFunction {
    pub op: PlainSymbol,
}

A "transaction function" that exposes some value determined by the current transaction. The prototypical example is the current transaction ID, (transaction-tx).

A natural next step might be to expose the current transaction instant (transaction-instant), but that's more difficult: the transaction itself can set the transaction instant (with some restrictions), so the transaction function must be late-binding. Right now, that's difficult to arrange in the transactor.

In the future, we might accept arguments; for example, perhaps we might expose (ancestor (transaction-tx) n) to find the n-th ancestor of the current transaction. If we do accept arguments, then the special case of (lookup-ref a v) should be handled as part of the generalization.

Fields

Trait Implementations

impl Clone for TxFunction
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for TxFunction
[src]

Formats the value using the given formatter. Read more

impl Eq for TxFunction
[src]

impl Hash for TxFunction
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Ord for TxFunction
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialOrd for TxFunction
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl PartialEq for TxFunction
[src]

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

This method tests for !=.

Auto Trait Implementations

impl Send for TxFunction

impl Sync for TxFunction