~/bend-docscommunity

owned_event_log.bend checks

raw source on the hub · import bendvy-ecs-core@0.1.0.2/owned_event_log.bend as Owned_event_log

3 imports
import Base
import ./capabilities.bend as Cap
import ./owned_event_scope.bend as Scope

Types

type Row source · line 5 · raw

@P:Type -> Type

Sequential identities belong to the log; payloads are never copied.

type Log source · line 6 · raw

@P:Type -> Type

type ReadResult source · line 7 · raw

@Args:Type -> @Observation:Type -> Type

Definitions

def contains source · line 26 · raw

@+ids:List<&2, Nat> -> @+id:Nat -> Bool

Templates

template empty source · line 10 · raw

@-P:Type -> Log<P>

template append source · line 11 · raw

@-P:Type -> @log:Log<P> -> @payload:P -> Pair(Log<P>, Nat)

template appended_many source · line 14 · raw

@-P:Type -> @id:Nat -> @result:Pair(Log<P>, List<&2, Nat>) -> Pair(Log<P>, List<&2, Nat>)

template append_remaining source · line 17 · raw

@-P:Type -> @next:(@_:Log<P> -> Pair(Log<P>, List<&2, Nat>)) -> @result:Pair(Log<P>, Nat) -> Pair(Log<P>, List<&2, Nat>)

template append_rows source · line 20 · raw

@-P:Type -> @payloads:List<&1, P> -> @log:Log<P> -> Pair(Log<P>, List<&2, Nat>)

template append_many source · line 24 · raw

@-P:Type -> @log:Log<P> -> @payloads:List<&1, P> -> Pair(Log<P>, List<&2, Nat>)

template partitioned source · line 30 · raw

@-P:Type -> @keep:Bool -> @row:Row<P> -> @result:Pair(List<&1, Row<P>>, List<&1, Row<P>>) -> Pair(List<&1, Row<P>>, List<&1, Row<P>>)

template partition source · line 34 · raw

@-P:Type -> @rows:List<&1, Row<P>> -> @+ids:List<&2, Nat> -> Pair(List<&1, Row<P>>, List<&1, Row<P>>)

template retired source · line 38 · raw

@-P:Type -> @next:Nat -> @result:Pair(List<&1, Row<P>>, List<&1, Row<P>>) -> Pair(Log<P>, List<&1, Row<P>>)

template retire source · line 41 · raw

@-P:Type -> @log:Log<P> -> @ids:List<&2, Nat> -> Pair(Log<P>, List<&1, Row<P>>)

template retain source · line 44 · raw

@-P:Type -> @log:Log<P> -> @ids:List<&2, Nat> -> Pair(Log<P>, List<&1, Row<P>>)

template drain source · line 46 · raw

@-P:Type -> @log:Log<P> -> Pair(Log<P>, List<&1, Row<P>>)

template read_returned source · line 49 · raw

@-P:Type -> @-Args:Type -> @-Observation:Type -> @id:Nat -> @tail:List<&1, Row<P>> -> @observed:Pair(P, Observation) -> Pair(List<&1, Row<P>>, ReadResult<Args, Observation>)

template read_rebuilt source · line 52 · raw

@-P:Type -> @-Args:Type -> @-Observation:Type -> @row:Row<P> -> @result:Pair(List<&1, Row<P>>, ReadResult<Args, Observation>) -> Pair(List<&1, Row<P>>, ReadResult<Args, Observation>)

template read_selected source · line 55 · raw

@-P:Type -> @-Request:Type -> @-Projection:Data -> @-Args:Type -> @-Observation:Type -> @-at:(@_:P -> @_:Request -> Pair(P, Projection)) -> @-body:(@-H:Type -> @-read:0xb2b0f04555daca474f0f77d0966945c9/capabilities.Request<H, Request, Projection> -> @_:H -> @_:Args -> Pair(H, Observation)) -> @next:(@_:List<&1, Row<P>> -> @_:Args -> Pair(List<&1, Row<P>>, ReadResult<Args, Observation>)) -> @selected:Bool -> @id:Nat -> @payload:P -> @tail:List<&1, Row<P>> -> @args:Args -> Pair(List<&1, Row<P>>, ReadResult<Args, Observation>)

template read_rows source · line 59 · raw

@-P:Type -> @-Request:Type -> @-Projection:Data -> @-Args:Type -> @-Observation:Type -> @-at:(@_:P -> @_:Request -> Pair(P, Projection)) -> @-body:(@-H:Type -> @-read:0xb2b0f04555daca474f0f77d0966945c9/capabilities.Request<H, Request, Projection> -> @_:H -> @_:Args -> Pair(H, Observation)) -> @fuel:Nat -> @rows:List<&1, Row<P>> -> @+wanted:Nat -> @args:Args -> Pair(List<&1, Row<P>>, ReadResult<Args, Observation>)

template counted_row source · line 64 · raw

@-P:Type -> @row:Row<P> -> @result:Pair(List<&1, Row<P>>, Nat) -> Pair(List<&1, Row<P>>, Nat)

template count_rows source · line 67 · raw

@-P:Type -> @rows:List<&1, Row<P>> -> Pair(List<&1, Row<P>>, Nat)

template read_finished source · line 71 · raw

@-P:Type -> @-Args:Type -> @-Observation:Type -> @next:Nat -> @result:Pair(List<&1, Row<P>>, ReadResult<Args, Observation>) -> Pair(Log<P>, ReadResult<Args, Observation>)

template read_counted source · line 74 · raw

@-P:Type -> @-Request:Type -> @-Projection:Data -> @-Args:Type -> @-Observation:Type -> @-at:(@_:P -> @_:Request -> Pair(P, Projection)) -> @-body:(@-H:Type -> @-read:0xb2b0f04555daca474f0f77d0966945c9/capabilities.Request<H, Request, Projection> -> @_:H -> @_:Args -> Pair(H, Observation)) -> @next:Nat -> @id:Nat -> @args:Args -> @counted:Pair(List<&1, Row<P>>, Nat) -> Pair(Log<P>, ReadResult<Args, Observation>)

template read source · line 77 · raw

@-P:Type -> @-Request:Type -> @-Projection:Data -> @-Args:Type -> @-Observation:Type -> @-at:(@_:P -> @_:Request -> Pair(P, Projection)) -> @-body:(@-H:Type -> @-read:0xb2b0f04555daca474f0f77d0966945c9/capabilities.Request<H, Request, Projection> -> @_:H -> @_:Args -> Pair(H, Observation)) -> @log:Log<P> -> @id:Nat -> @args:Args -> Pair(Log<P>, ReadResult<Args, Observation>)