Skip to main content

ComposeAdapter

Struct ComposeAdapter 

Source
pub struct ComposeAdapter<A: AstAdapter> { /* private fields */ }

Implementations§

Source§

impl<A: AstAdapter> ComposeAdapter<A>

Source

pub fn new(outer: A) -> Self

Source

pub fn on_demand_only(self) -> Self

Graft on demand only (graft(NOTATION), a <NOTATION> trait at a step): no leaf is read for a declared notation of its own, so a plain source keeps its leaves as they were.

Source

pub fn with_string_reader(self, reader: StringReader) -> Self

The host’s readings of a lone string (graft(corpus:latex)): without one, a reading prefix other than code refuses.

Source

pub fn with_document_nodes(self, reader: DocumentNodes<A>) -> Self

The delimited-text options for this mount (builder-style). The host’s reading of document leaves by node: a leaf the reader answers grafts as that text-level model (the leaves ?doc= names, a model file’s document members).

Source

pub fn with_default_notation(self, notation: Option<String>) -> Self

Every leaf beneath the mount reads as notation, the mount’s ?format=NOTATION (spec: Grafting); a leaf whose text does not parse as it stays a leaf.

Source

pub fn with_csv_options(self, csv: CsvOptions) -> Self

Source

pub fn with_decoding(self, decoding: SourceDecoding) -> Self

The source-boundary rule for this mount (builder-style): the ?encoding= option and the reporter the host chose. Reaches grafted archives too.

Source

pub fn with_document_reader(self, reader: DocumentReader) -> Self

Hand document leaves to the host’s reader first (builder-style); needs the outer leaves’ paths (with_source_paths).

Source

pub fn with_document_urls( self, document_url: fn(&A, NodeId) -> Option<String>, ) -> Self

Declare where each outer leaf’s document is served from (builder-style): a text-level graft joins its relative references against that URL, and --> from any graft lands on the leaf holding the referenced document (its fragment’s bearer when named) without a host registration.

Source

pub fn with_source_graft(self, graft: SourceGraft) -> Self

Choose the level source-file leaves graft at (builder-style; the default is the syntax level).

Source

pub fn with_document_graft(self, graft: DocumentGraft) -> Self

Choose the level marked-up documents graft at (builder-style; the default is the DOM).

Source

pub fn with_source_paths( outer: A, source_path: fn(&A, NodeId) -> Option<PathBuf>, ) -> Self

Like new, with a hook mapping outer leaves to filesystem paths, so archive leaves (.zip, .tar[.gz]) graft too. The grafted archive composes in turn: its own parseable entries graft, and one path walks filesystem → archive → document.

Source

pub fn with_source_bytes(self, bytes: fn(&A, NodeId) -> Option<Vec<u8>>) -> Self

A hook mapping outer leaves to their bytes (builder-style): an archive leaf with no filesystem path, a member of an archive, grafts from them, and composes in turn.

Source

pub fn outer(&self) -> &A

The wrapped adapter (for outer-specific calls).

Source

pub fn locator( &self, node: NodeId, outer_locator: impl Fn(NodeId) -> String, ) -> String

A combined locator: outer_locator(leaf)!inner-path for grafted nodes.

Source

pub fn graft_text( &self, text: &str, operand: Option<&str>, ) -> Result<NodeId, String>

Graft a text on demand (spec: Grafting, graft(NOTATION)). The operand is written as a mount target is: NOTATION reads the string under the notation’s default reading (json; the DOM for markdown and html; text is plain text under its only reading); READING:NOTATION reads it under that reading over that notation, as READING:file.ext would read a source (text:markdown, corpus:latex, koine:markdown, lit:tei, code:rust); READING alone takes the notation the string declares (an XML declaration, a DOCTYPE) and plain text otherwise; no operand takes the default reading of a self-declaring string and refuses one that declares nothing. The parsed document becomes a free root, parentless in the arbor, that a path walks into; Err names what did not parse or what the operand did not name. The web reading reads a crawl, not a lone string, and refuses.

Source

pub fn graft_as(&self, node: NodeId, notation: &str) -> bool

Read an outer leaf as notation, the query’s <NOTATION> at a step (spec: Grafting): true when the leaf is grafted as that notation afterwards, whether by this call or before it.

Trait Implementations§

Source§

impl<A: AstAdapter> AstAdapter for ComposeAdapter<A>

Source§

fn children_named(&self, node: NodeId, name: &str) -> Vec<NodeId>

A child by name: the outer source’s own lookup first (a database reads /books/7 by key), and the listing only where the node may hold a grafted document — a leaf with a path or with text. A miss on a node that cannot hold one stays a miss, without listing its children.

Source§

fn walks_for_references(&self) -> bool

The walk is open when the outer tree opens to it (a graft is read whole once reached).

Source§

fn can_refer_to(&self, source: NodeId, target: NodeId) -> Option<bool>

A declaration answers on its own side of the boundary; across it only a reference property of the source’s own can reach.

Source§

fn index_referrers( &self, scope: &str, property: &str, label: Option<&str>, target: NodeId, ) -> Option<Vec<NodeId>>

The outer source’s own index over a scope of its own nodes (a database reading /books/* by key).

Source§

fn resolves_references(&self) -> bool

The outer source, or any document grafted so far.

Source§

fn non_tree_nodes(&self) -> Vec<NodeId>

The outer tree’s non-tree nodes, then each graft’s (the grafts already read).

Source§

fn answers_to(&self, node: NodeId, name: &str) -> bool

A written name reaches a node by the owning adapter’s rule (its aliases included).

Source§

fn traits(&self, node: NodeId) -> Vec<String>

The graft root IS the outer leaf, so the leaf wears the grafted document’s own traits too — a page’s declared tags on the file that holds it.

Source§

fn aliased_metadata(&self, node: NodeId) -> &'static [&'static str]

A graft’s own aliases are not merged: a node either belongs to the outer document or to a graft, and the alias list is consulted only after the owning adapter’s property misses.

Source§

fn provenance(&self, node: NodeId) -> Provenance

A graft is a provenance layer: the grafted document’s own components win, and the outer leaf it was parsed from fills the rest (with an fs outer: the file’s path and mtime). The jar-style composite locator is deliberately not the source — ?src names a document, and the intra-document address is dpid’s job.

Source§

fn provenance_list(&self, node: NodeId) -> ProvenanceList

The same layering, entry by entry.

Source§

fn has_trait(&self, node: NodeId, name: &str) -> bool

A trait test reaches the graft — and, on the outer leaf, the graft’s root, as traits does.

Source§

fn external_ref( &self, node: NodeId, property: &str, hint: Option<&str>, ) -> Option<ExternalRef>

A graft’s external references (a text-level ref leaving its document) come through; an outer leaf’s own do too.

Source§

fn resolve_fragment(&self, node: NodeId, fragment: &str) -> Option<NodeId>

A fragment lands inside the document: on an outer leaf that holds a graft, inside that graft.

Source§

fn document_by_ref(&self, id: &str) -> Option<NodeId>

The leaf serving a URL, from the declared document URLs; else whatever the outer answers.

Source§

fn reverse_resolve( &self, node: NodeId, property: Option<&str>, hint: Option<&str>, ) -> Option<Vec<NodeId>>

A reverse index answers on one side of the boundary only: inside a graft, the graft’s own; on the outer tree, the outer’s declared references (a catalog key, a model ref), which no graft can hold a referrer for.

Source§

fn descendants_named( &self, node: NodeId, name: &str, ) -> Option<Vec<(NodeId, usize)>>

Inside a graft the graft’s index answers; on the outer tree a name may also live inside grafts, so the walk stays.

Source§

fn estimate(&self, scope: &[&str], plan: &StepPlan<'_>) -> Option<Estimate>

The outer source prices its own tree. Where this layer grafts by kind, a leaf beneath the scope may be a document it has not read, so a step that reaches into leaves (a descendant step anywhere, a child step from a leaf) keeps the outer’s lower bound and loses its upper one: a strict budget refuses it as unbounded, a lenient one lets the walk price it. A layer that grafts on demand only reads no leaf the query does not name, so the outer’s estimate stands.

Source§

fn surface(&self, node: NodeId) -> Option<Surface>

A grafted document’s surface, its container named from the leaf it is grafted on.

Source§

fn may_hold_below( &self, node: NodeId, name: Option<&str>, traits: &[&str], ) -> bool

The outer source’s own hint for its nodes; a leaf that may still graft (the layer probes leaves) may hold a document below, so the hint stands open there.

Source§

fn root(&self) -> NodeId

The root node — the initial navigation context.
Source§

fn graft_text( &self, text: &str, notation: Option<&str>, ) -> Option<Result<NodeId, String>>

Graft a text on demand (spec: Grafting, graft(NOTATION)): parse text as the notation named, or as what it declares about itself when none is, and answer the parsed document’s root, a free root with no parent in the arbor. None when this adapter has no composing layer to graft with; Some(Err) names what did not parse or what the operand did not name.
Source§

fn grafts_on_demand(&self) -> bool

Whether a composing layer stands in this adapter, so that graft_text answers and a host need not add one (the host wraps every other source in a graft-only layer at the mount).
Source§

fn form_of(&self, node: NodeId) -> Option<Form>

The construct a node of a reflected query stands for, cloned (design paper: a handle from each reflected node to its AST node): what a template expansion grafts when a hole reaches the node. None for every arbor that is no query.
Source§

fn children(&self, node: NodeId) -> Vec<NodeId>

The tree children of node, in document order. Read more
Source§

fn name(&self, node: NodeId) -> Option<String>

The name of node — the label of its incoming tree edge. Read more
Source§

fn parent(&self, node: NodeId) -> Option<NodeId>

The parent of node, or None for the root.
Source§

fn child_host(&self, node: NodeId) -> NodeId

The node whose children an explicit child step from node reads. The default is node itself. An adapter whose tree holds transparent links (a filesystem’s symlink to a directory) answers the link’s target, so /link/name lands on the target’s own child — the same node /target/name reaches. The descendant walk never consults this: it reads children alone, so a linked subtree is walked once, under its own parent, and a cycle of links cannot trap it.
Source§

fn properties(&self, node: NodeId) -> Vec<(String, Value)>

The node’s own properties, enumerated — name and value, in the source’s order — for readings that keep values off the tree (the JSON property reading, where an object’s scalar fields are no nodes). The serializers (| json, | xml, | kaiv) merge them with the children, a child winning a shared name. The default is none: for a reading whose values are all nodes, the children already say everything.
Source§

fn reference_properties(&self, source: NodeId, target: NodeId) -> Vec<String>

The reference properties declared on source that can land in target’s container: a catalog’s key columns into the target’s table, the fields of a model’s refs, the node’s own reference property. What t<-- and t<--(SCOPE) read when the query names no property; empty where none is declared.
Source§

fn tree_identities(&self) -> Vec<(String, NodeId)>

The trees of this arbor other trees refer to by name: each identity (a URL, a path, any string a reference may hold) with the node that stands for the tree. An identity ending in a separator is a base: every identity beneath it names the node reached beneath the base’s node by the remainder’s segments. Declared in a model (tree IDENTITY: PATH;) and automatic for a mount’s own target; the engine reads nothing inside an identity beyond prefix and separator.
Source§

fn reverse_label(&self, target: NodeId) -> Option<String>

The reference label under which a referrer’s property is also resolved when a reverse arrow asks about target and the query writes no label. None (the default): only the label-less resolution counts. An adapter whose label names a container (a table, a collection, a node label) returns the one target stands in, so /authors/1<--(/books/*::author_id) reads author_id as a key into authors without the query saying so. The engine derives no label of its own.
Source§

fn resolve_needs_label(&self, node: NodeId, property: &str) -> bool

Whether resolving property of node needs a reference label, because the property itself declares no target: a column with no key, or any property of a property graph, where a value names a node only under a node label. A label-less ::p--> over such a property is refused with the remedy, since an empty answer would read as “points nowhere”.
Source§

fn property_names(&self, node: NodeId) -> Vec<String>

The names of the properties a node has — what “any property” means for <--(SCOPE::*). By default its off-tree properties, its reference property, and its children’s names (a row’s columns, an object’s keys are properties under the same names); an adapter whose properties are not children (an element’s attributes) lists them.
Source§

fn property(&self, node: NodeId, name: &str) -> Option<Value>

A named property of node — ::prop. None if absent.
Source§

fn default_value(&self, node: NodeId) -> Option<Value>

The default projection of node — bare ::, adapter-specific (a filesystem adapter returns file content).
Source§

fn metadata(&self, node: NodeId, key: &str) -> Option<Value>

Adapter-defined metadata — :::key (a filesystem adapter’s size, modified, permissions, …). None if absent.
Source§

fn metadata_keys(&self, node: NodeId) -> Vec<String>

The ::: keys this node answers (spec: the :meta core field, draft 164): the adapter’s catalogue filtered by what the node answers. A composite adapter delegates to the adapter that owns the node.
Source§

fn resolve( &self, node: NodeId, property: &str, hint: Option<&str>, ) -> Option<NodeId>

Resolve a cross-reference: ::property-->hint maps node’s property (a value that references another node) to its target, with an optional adapter-specific hint (a relation type such as an html rel, or a target container such as a table). A JSON adapter resolves a $ref JSON Pointer; None if unresolvable.
Source§

fn ref_property(&self, node: NodeId) -> Option<String>

The property carrying node’s own reference, for the bare arrow (//a-->): an html anchor’s href, an iframe’s src. None for a node that references nothing.
Source§

fn ref_label(&self, node: NodeId, property: &str) -> Option<String>

The relation name a resolution edge from node via property carries — html’s rel attribute. None falls back to the property name as the edge label.
Source§

fn descendants_where( &self, node: NodeId, name: &str, property: &str, value: &Value, ) -> Option<Vec<(NodeId, usize)>>

The descendants of node named name whose property property equals value, each with its depth, in document order — the fast path behind //name[::property = "value"] for an adapter that indexes a property (the corpus reading’s positional index answers //token[::lower = "tom"] from it). None keeps the engine’s walk and its comparison; Some must be exactly what the walk would find under the standard equality, so an adapter answers only the values it can compare as the engine does (text against text).
Source§

fn select(&self, from: NodeId, plan: &StepPlan<'_>) -> Option<Selection>

The search fast path: the nodes one step reaches from from under plan, answered from an index — None keeps the engine’s walk (the default folds children_named, descendants_named and descendants_where: select_by_hooks). Some must be exactly what the walk would find for the conjuncts it marks applied, under the engine’s standard equality; the engine tests the remaining conjuncts and every other predicate on the nodes returned. A child plan’s answer is never re-filtered by name (the adapter owns the name test, as children_named does); a descendant plan’s nodes still pass the nameless tests.
Source§

fn index_lookup( &self, scope: &str, property: &str, value: &Value, ) -> Option<Vec<NodeId>>

index SCOPE::prop; — the nodes of the declared scope whose property holds value, from an index the model keeps; None when no declaration covers the pair (the walk answers). An index changes cost, never the answer: the caller still tests each node it names.
Source§

fn select_plan(&self, scope: &[&str], plan: &StepPlan<'_>) -> Option<Vec<bool>>

The dry-run form of select: which of the plan’s conjuncts the adapter would apply, decided from its catalog alone (a column’s existence and type, an index’s presence), with no node in hand. scope is the literal path from the root to the step’s base (["invoices"] for /invoices/*[...]), empty at the root. None when the adapter cannot say — the static plan then counts every conjunct as the engine’s.
Source§

fn has_node(&self, node: NodeId) -> bool

Whether node is an id this adapter minted — the guard behind the node-id anchor ((!N)), which may name an id from an earlier run (ids are minted deterministically: the same source, the same ids). The default probes the id through parent and name and treats a panic as absence, so an adapter that indexes by id needs no override; one that can answer cheaply should.
Source§

fn unit_scale(&self, expr: &str) -> Option<(f64, String)>

The scale of a unit expression — (factor, canonical SI-base expansion) — for the unital reading’s criterion text (spec: The Quantital Fragment). The default answers from the engine’s frozen built-in table; a unit-aware adapter (kaiv) overrides it to include the mounted document’s own custom units, so [::range < '50kellicam'] resolves through the document’s .!units imports.
Source§

fn unit_names(&self) -> Vec<String>

The unit names the mounted source adds to the built-in table, every spelling (a model’s declarations, a kaiv document’s own units); empty by default. The parser judges the operand of convert(U) and unit(U) against the table and this list (spec: The conversion): an unknown name there is refused, where a value’s unknown unit stays opaque.
Source§

fn metadata_catalogue(&self) -> &'static [&'static str]

Every ::: key this adapter can answer, for metadata_keys; an adapter with none declared lists none.
Source§

fn graph_bound(&self) -> usize

The graph bound (spec: The graph library, Other bounds): the most cost units a library command may compute over, a unit being a node or an edge of the induced subgraph (their product for betweenness); reaching it refuses before the command computes. Ten million unless the adapter says otherwise.
Source§

fn graph_declarations(&self) -> Vec<GraphDeclaration>

The graphs the source maintains measures over (spec: Graph Declarations): a model’s graph statements, or a level’s own stored measures (the web level’s rank). None by default.
Source§

fn graph_measure( &self, scope: &str, hop: &str, measure: &str, nodes: &[NodeId], ) -> Option<Vec<Value>>

A declared measure’s values for nodes, the declared scope entire in the engine’s order, once the engine has found the command’s step, options and context to be the declared ones: one value per node, or one table for a table-answering command. None declines, and the engine computes.
Source§

fn store_graph_measure( &self, scope: &str, hop: &str, measure: &str, nodes: &[NodeId], values: &[Value], )

The values the engine computed for a declared measure the source declined, offered for the source to keep and answer next time; nothing by default.
The promise that no walk over the link label returns to a node (spec: Model Files, Acyclic links): the declaration, or the source’s own word, that makes it — for the refusal that names it when the data breaks it. None for a link that makes no promise, every link by default. Under the promise the exact forms of a quantified walk expand by node and round instead of by history.
Source§

fn nodes_withheld(&self) -> bool

Whether the source dropped whole nodes for the caller in this run (spec: omitted data): a gated table or branch that is simply not there. Asked once after the run; true raises the omission warning. False by default.
Source§

fn withheld_properties(&self) -> Vec<String>

The properties the caller may not read anywhere in the source (spec: omitted data): never pushed into the store’s query as a conjunct or an index lookup. None by default.
Source§

fn property_withheld(&self, node: NodeId, name: &str) -> bool

Whether property(node, name) answered None because the caller may not read the property, rather than the node lacking it (spec: omitted data). Asked only after an absent read. The property stays absent; the engine warns once per query, and refuses where the read would key a filter, a sort, a group or an aggregate. False by default.
Source§

fn declared_notation(&self, node: NodeId) -> Option<String>

The notation the substrate declares for a leaf’s text (spec: Grafting): a column typed json or jsonb answers json, an HTTP response its content type’s notation. The composition layer grafts such a leaf as declared; a leaf nothing declares (not this, not its name, not the mount, not the query) is a leaf. None by default.
The names of the properties an edge carries — the weights a budget quantifier may sum (spec: The budget quantifier) and the columns @| edges lists. Empty by default: an adapter whose edges carry properties (AstAdapter::link_property) names them here, so the engine can pick the one of the budget’s dimension.
Source§

fn edge_weights( &self, source: NodeId, label: &str, target: NodeId, row: Option<NodeId>, forward: bool, ) -> Vec<Value>

The WEIGHTS an edge carries (spec: the edge model, ruling 2026-11-07): quantities with pairwise distinct dimensions, none dimensionless, in the canonical dimension order — what a budget quantifier sums for its dimension and --weight=UNIT reads, never inferred from the edge’s properties. Empty by default: a model declares them (weights(::km), a weight-potential); a substrate that carries weights of its own mints them here. row is the edge’s own row where the edge is one; forward whether the walk crosses the edge from its source to its target (a potential’s difference flips its sign with the traversal).
Source§

fn prefetch_properties(&self, nodes: &[NodeId], names: &[&str])

A batching hint, the projection twin of prefetch_links: the engine is about to read the properties names of every node in nodes (the next command projects them). A remote adapter fetches the columns for the frontier in one round trip; semantics are unchanged either way.
Source§

fn count(&self, from: NodeId, plan: &StepPlan<'_>) -> Option<usize>

How many nodes one step reaches from from under plan, without materializing them — @| count right after the step asks before walking. None walks; Some must be exactly the walk’s count for the conjuncts the plan carries (every one of them, or none: a count cannot be partially applied). SQL: SELECT COUNT(*); a document index: the bucket’s length.
Source§

fn row_columns(&self, node: NodeId) -> Option<Vec<String>>

The columns of the rows row_text serves, asked for the source node belongs to (the one-pass typed build, 2026-11-06): a source whose rows are records of one shape — a CSV’s — names them; None where the rows have no one shape, and a table build reads each node’s record. A mount of several sources answers for the one holding node.
Source§

fn intrinsic(&self, node: NodeId) -> NodeId

The node node stands for (ruling 2026-11-06, identity is intrinsic): a node of a model’s role answers the source node it aliases, so :id, :name and :path are the source’s and collapse, unique, ((!N)) and the cycle check see one node; the role stays visible to navigation alone. Every other node stands for itself.
Source§

fn row_text(&self, node: NodeId, f: &mut dyn FnMut(&[&str])) -> bool

The cells of a row node as text, in the order of row_columns, handed to f once — an empty text a cell the row lacks (null), each text in the source’s canonical form — and true; false where the node is no row of that shape, and the build reads its record. The one-pass typed build parses the cells from the text, no value made on the way.
Source§

fn quantifier_bound(&self) -> usize

The quantifier bound N_max: the depth to which open-ended path quantifiers (+, *, {m,}) expand, and the ceiling of any explicit {m,n} (the effective upper bound is min(n, N_max)). An adapter whose natural structures run deep may raise it; a run may override it (Run::quantifier_bound, the CLI’s --quantifier-bound). The shell gate and the invocation instant are the run’s alone (Run::allow_shell, Run::now).
Source§

fn frontier_bound(&self) -> usize

The frontier bound: the most expansion paths one round of a quantified walk may hold in flight. A set walk (an open quantifier with a floor of at most one, under all matches or the proximal reach, no push or mark) reaches each node once and never nears it; an exact walk keeps one acyclic walk per history, and over data with many routes to a node that count explodes — the bound refuses the walk by name instead of running for hours. A run may override it (Run::frontier_bound, the CLI’s --frontier-bound).
Source§

fn whole_listings(&self)

Drop any pushed-down listing filter: from here on every table’s listing is the whole table. A model’s fabric indexes a ref’s target container by listing it, and a listing the planner narrowed to the query’s rows would drop every edge whose far end the predicate excluded; the engine re-applies the pushed predicates, so a whole listing changes no answer. A no-op for an adapter that never filters a listing.
A batching hint: the engine is about to follow dir crosslinks from every node in nodes. An adapter backed by a store may fetch them in one statement; semantics are unchanged either way.
Outgoing crosslinks from node, as (label, target) pairs, for -> navigation (a filesystem adapter’s symlinks).
Incoming crosslinks to node, as (label, source) pairs, for <- navigation. May be expensive (an adapter that does not precompute edges must search for referrers).
Whether the link from source under label is a reference an edge declaration consumed: a bare wildcard step (->*, <-*, --*, the crosslink part of ~) skips it, the label named (<-origin) still walks it (spec: Model Files, Edge rows). A model’s edge /flights/*: ::origin -- ::dest consumes the two references its fields resolve through, so a wildcard from an airport reaches the carrier edges and not the flight rows; a reference no edge consumed stays visible to wildcards. The default consumes nothing.
links with each edge’s identity: the node that IS the edge, for an adapter whose edges are rows (a model’s edge … as flight over a flights table: the row is the edge, its cells the edge’s properties), None for an edge that is nothing but a link. Two rows on one leg are two edges — each its own thread, each its own $- (spec: Edge rows). The default reads links with no identity.
Source§

fn edge_rows(&self, node: NodeId) -> Vec<(String, NodeId, Option<NodeId>)>

The edges of the graph as a table (spec: The graph as a table, The graph library): what edges collects and the graph library reads, from node outward. By default the link rows; a level whose step lands inside the target — the web’s fragment link, which links lands on the section — reports the edge to the target node itself, so that the induced subgraph of the pages carries it and the stored rank’s graph is the one the library ranks.
backlinks with each edge’s identity, as link_rows.
Whether the links into node are ones this source cannot walk back (spec: The adapter contract): it answers links and provides no backlinks, as a document store whose references live in the referring documents does. A step that needs the backward direction there (<-, --, the navop wildcard, edges over any of them) is refused, the refusal naming what the source lacks, rather than answered with an empty set that would read as “nothing points here”. label is the one label the step names when it names exactly one, None for a wildcard, a pattern or a selection: a layer that walks some labels back itself (a model’s declared references over such a source) answers for those and hands the rest down. A source with no links at all says no: there is nothing to walk back, and the empty answer is the true one. False by default.
A property of the crosslink source --label--> target — the $-::prop read. Adapters whose edges carry data (a property graph’s relationship properties) override this; None if the edge is bare or unknown. Where parallel edges share source, label, and target, the adapter answers for one of them, consistently.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.