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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for TxFunction
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for TxFunction
[src]

impl Hash for TxFunction
[src]

[src]

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

1.3.0
[src]

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

impl Ord for TxFunction
[src]

[src]

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

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl PartialOrd for TxFunction
[src]

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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]

[src]

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

[src]

This method tests for !=.

impl<V: TransactableValueMarker> From<TxFunction> for ValuePlace<V>
[src]

[src]

Performs the conversion.

impl<V: TransactableValueMarker> From<TxFunction> for EntityPlace<V>
[src]

[src]

Performs the conversion.