pub struct DomainToken(/* private fields */);Expand description
An opaque, domain-supplied classification token.
blut-graph-core NEVER interprets these. The compiler does exactly three
things with a token: compares it to another for edge compatibility, rejects
it when empty, and folds its bytes into the plan hash. It has no opinion
about what any particular token means.
That is the point. The vocabulary belongs to the domain layer (ADR 0034) —
a biosignal domain names recordings and signal blocks, a vision domain names
frames and tensors, and the compiler stays ignorant of both. Before the 2026-08-26 domain-token migration this
slot was a pair of enums (AbirRootType/AbirViewType) that hard-coded one
domain’s taxonomy into the compiler; consumers were already escaping it
through an Unknown(String) variant in 10 of 22 call sites, which is the
shape below with extra steps.
Construction is deliberately permissive — an empty token is representable and
is rejected by [crate::compile]’s port-contract validation, exactly as the
empty Unknown("") was. Validity is the compiler’s judgement, not the
constructor’s.
Implementations§
Trait Implementations§
Source§impl Clone for DomainToken
impl Clone for DomainToken
Source§fn clone(&self) -> DomainToken
fn clone(&self) -> DomainToken
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more