pub struct Roster {Show 37 fields
pub features: Vec<FeatureInfo>,
pub elements: Vec<ElementDef>,
pub attachments: Vec<Attachment>,
pub fallbacks: Vec<FallbackDef>,
pub scoped_packages: Vec<ScopedPackageDef>,
pub overrides: Vec<OverrideDef>,
pub capabilities: Vec<(FeatureName, CapabilityDef)>,
pub collections: Vec<(FeatureName, CollectionDef)>,
pub argument_roles: Vec<(FeatureName, ArgumentRoleDef)>,
pub element_type_texts: Vec<ElementTypeText>,
pub members: Vec<(FeatureName, CapName, CapName)>,
pub tables: Vec<TableRecord>,
pub stages: Vec<StageRecord>,
pub orderings: Vec<(FeatureName, OrderingDef)>,
pub rules: Vec<(FeatureName, LoweringRule)>,
pub presentation: Vec<PresentationRecord>,
pub backends: Vec<BackendRecord>,
pub outputs: Vec<(FeatureName, OutputDef)>,
pub workflows: Vec<(FeatureName, WorkflowDef)>,
pub workflow_fields: Vec<(FeatureName, WorkflowDef)>,
pub options: Vec<OptionDecl>,
pub slots: Vec<SlotDecl>,
pub contributions: Vec<Contribution>,
pub requirements: Vec<ServiceRequirement>,
pub finalizers: Vec<(FeatureName, Arc<dyn Finalizer>)>,
pub late_inits: Vec<(FeatureName, Arc<dyn LateInit>)>,
pub styles: Vec<(FeatureName, StyleDef)>,
pub scripts: Vec<(FeatureName, ScriptDef)>,
pub native_implications: Vec<(FeatureName, NativeImplication)>,
pub peer_backends: Vec<PeerBackendRecord>,
pub peer_elements: Vec<PeerElementRecord>,
pub peer_tables: Vec<PeerTableRecord>,
pub peer_scoped_packages: Vec<PeerScopedPackageRecord>,
pub peer_element_values: Vec<PeerElementValueRecord>,
pub peer_argument_roles: Vec<PeerArgumentRoleRecord>,
pub digest_inputs: Vec<DigestInput>,
pub errors: Vec<BuildError>,
}Expand description
The collected declarations of one registry build: every declaration every feature made, in registration order, each attributed to the feature that made it.
FeatureBuilder fills it.
RegistryBuilder::build checks it and
numbers its entries into the frozen registry, after which it no longer
exists; the registry keeps its element declarations, scoped packages,
fallbacks and overrides
(FlmRegistry::declarations). Only
the registry build creates and reads a Roster; the type is public so
that its contents are documented.
Fields§
§features: Vec<FeatureInfo>The features, in registration order.
elements: Vec<ElementDef>The element declarations, including the peer element values until the build drops the unresolved ones.
attachments: Vec<Attachment>The aspect attachments.
fallbacks: Vec<FallbackDef>The fallback declarations.
scoped_packages: Vec<ScopedPackageDef>The scoped packages.
overrides: Vec<OverrideDef>The declarations that a feature’s definition of a callable name
replaces another feature’s (FeatureBuilder::override_callable).
capabilities: Vec<(FeatureName, CapabilityDef)>The capabilities declared on their own, each with the declaring feature.
collections: Vec<(FeatureName, CollectionDef)>The collections, each with the declaring feature.
argument_roles: Vec<(FeatureName, ArgumentRoleDef)>The argument roles, each with the declaring feature.
element_type_texts: Vec<ElementTypeText>The documentation texts that features gave to element types
(FeatureBuilder::element_type_text), in declaration order. The
build checks them and adds the texts of the language’s structural
element types and of the presentation elements.
members: Vec<(FeatureName, CapName, CapName)>The collection members, as (contributing feature, collection, member).
tables: Vec<TableRecord>The tables.
stages: Vec<StageRecord>The stages of both forms.
orderings: Vec<(FeatureName, OrderingDef)>The ordering edges, each with the feature that placed them.
rules: Vec<(FeatureName, LoweringRule)>The lowering rules, each with the registering feature.
presentation: Vec<PresentationRecord>The presentation elements.
backends: Vec<BackendRecord>The backends.
outputs: Vec<(FeatureName, OutputDef)>The outputs, each with the registering feature.
workflows: Vec<(FeatureName, WorkflowDef)>The workflows, each with the registering feature.
workflow_fields: Vec<(FeatureName, WorkflowDef)>The fields registered for workflows by name, each with the
registering feature, in registration order; see
FeatureBuilder::workflow_fields.
options: Vec<OptionDecl>The option type declarations.
slots: Vec<SlotDecl>The service slot declarations.
contributions: Vec<Contribution>The contributions to service slots.
requirements: Vec<ServiceRequirement>The requirements that a service slot be filled.
finalizers: Vec<(FeatureName, Arc<dyn Finalizer>)>The finalizers, each with the registering feature.
late_inits: Vec<(FeatureName, Arc<dyn LateInit>)>The late-initialization hooks, each with the registering feature.
styles: Vec<(FeatureName, StyleDef)>The style definitions, each with the registering feature.
scripts: Vec<(FeatureName, ScriptDef)>The script definitions, each with the registering feature.
native_implications: Vec<(FeatureName, NativeImplication)>The native-set implications, each with the declaring feature.
peer_backends: Vec<PeerBackendRecord>The peer declarations of backends.
peer_elements: Vec<PeerElementRecord>The peer declarations of presentation elements.
peer_tables: Vec<PeerTableRecord>The peer declarations of tables.
peer_scoped_packages: Vec<PeerScopedPackageRecord>The peer declarations of scoped packages.
peer_element_values: Vec<PeerElementValueRecord>The peer declarations of element values; each element declaration is
also held in elements until the build drops the
unresolved ones.
peer_argument_roles: Vec<PeerArgumentRoleRecord>The peer declarations of argument roles.
digest_inputs: Vec<DigestInput>The bytes features gave as inputs of the registry digest.
errors: Vec<BuildError>The errors that features’ register methods and finalizers returned
during the current registration round; the build takes them out at
the end of each round.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Roster
impl !UnwindSafe for Roster
impl Forget for Roster
impl Freeze for Rosterwhere
*const u8 is !null: Freeze,
PhantomData<FeatureInfo>: Freeze,
PhantomData<ElementDef>: Freeze,
PhantomData<Attachment>: Freeze,
PhantomData<FallbackDef>: Freeze,
PhantomData<ScopedPackageDef>: Freeze,
PhantomData<OverrideDef>: Freeze,
PhantomData<(FeatureName, CapabilityDef)>: Freeze,
PhantomData<(FeatureName, CollectionDef)>: Freeze,
PhantomData<(FeatureName, ArgumentRoleDef)>: Freeze,
PhantomData<ElementTypeText>: Freeze,
PhantomData<(FeatureName, CapName, CapName)>: Freeze,
PhantomData<TableRecord>: Freeze,
PhantomData<StageRecord>: Freeze,
PhantomData<(FeatureName, OrderingDef)>: Freeze,
PhantomData<(FeatureName, LoweringRule)>: Freeze,
PhantomData<PresentationRecord>: Freeze,
PhantomData<BackendRecord>: Freeze,
PhantomData<(FeatureName, OutputDef)>: Freeze,
PhantomData<(FeatureName, WorkflowDef)>: Freeze,
PhantomData<OptionDecl>: Freeze,
PhantomData<SlotDecl>: Freeze,
PhantomData<Contribution>: Freeze,
PhantomData<ServiceRequirement>: Freeze,
PhantomData<(FeatureName, Arc<dyn Finalizer>)>: Freeze,
PhantomData<(FeatureName, Arc<dyn LateInit>)>: Freeze,
PhantomData<(FeatureName, StyleDef)>: Freeze,
PhantomData<(FeatureName, ScriptDef)>: Freeze,
PhantomData<(FeatureName, NativeImplication)>: Freeze,
PhantomData<PeerBackendRecord>: Freeze,
PhantomData<PeerElementRecord>: Freeze,
PhantomData<PeerTableRecord>: Freeze,
PhantomData<PeerScopedPackageRecord>: Freeze,
PhantomData<PeerElementValueRecord>: Freeze,
PhantomData<PeerArgumentRoleRecord>: Freeze,
PhantomData<DigestInput>: Freeze,
PhantomData<BuildError>: Freeze,
impl Move for Roster
impl Send for Rosterwhere
RawVecInner: Send,
Arc<str>: Send,
Arc<dyn FlmArgumentParser>: Send,
Arc<dyn FlmBodyParser>: Send,
Arc<ElementSpec>: Send,
TypeId: Send,
&'static str: Send,
Arc<dyn Any + Send + Sync>: Send,
Arc<dyn Stage>: Send,
Arc<dyn RewriteStage>: Send,
Arc<dyn Lower>: Send,
NodeRef<Owned, BackendName, LoweringSelection, LeafOrInternal>: Send,
BoxRaw<(BackendName, LoweringSelection)>: Send,
NodeRef<Owned, BackendName, Vec<ElementName>, LeafOrInternal>: Send,
BoxRaw<(BackendName, Vec<ElementName>)>: Send,
NodeRef<Owned, OptionKey, OptionValue, LeafOrInternal>: Send,
BoxRaw<(OptionKey, OptionValue)>: Send,
Arc<dyn Finalizer>: Send,
Arc<dyn LateInit>: Send,
BoxRaw<ArgumentPlace>: Send,
BoxRaw<[Vec<FeatureName>]>: Send,
impl Sync for Rosterwhere
RawVecInner: Sync,
Arc<str>: Sync,
Arc<dyn FlmArgumentParser>: Sync,
Arc<dyn FlmBodyParser>: Sync,
Arc<ElementSpec>: Sync,
TypeId: Sync,
Arc<dyn Any + Send + Sync>: Sync,
Arc<dyn Stage>: Sync,
Arc<dyn RewriteStage>: Sync,
Arc<dyn Lower>: Sync,
NodeRef<Owned, BackendName, LoweringSelection, LeafOrInternal>: Sync,
BoxRaw<(BackendName, LoweringSelection)>: Sync,
NodeRef<Owned, BackendName, Vec<ElementName>, LeafOrInternal>: Sync,
BoxRaw<(BackendName, Vec<ElementName>)>: Sync,
NodeRef<Owned, OptionKey, OptionValue, LeafOrInternal>: Sync,
BoxRaw<(OptionKey, OptionValue)>: Sync,
Arc<dyn Finalizer>: Sync,
Arc<dyn LateInit>: Sync,
BoxRaw<ArgumentPlace>: Sync,
BoxRaw<[Vec<FeatureName>]>: Sync,
impl Unpin for Rosterwhere
*const u8 is !null: Unpin,
Arc<str>: Unpin,
Arc<dyn FlmArgumentParser>: Unpin,
Arc<dyn FlmBodyParser>: Unpin,
Arc<ElementSpec>: Unpin,
*const (): Unpin,
&'static str: Unpin,
Arc<dyn Any + Send + Sync>: Unpin,
Arc<dyn Stage>: Unpin,
Arc<dyn RewriteStage>: Unpin,
Arc<dyn Lower>: Unpin,
*const LeafNode<BackendName, LoweringSelection> is !null: Unpin,
Box<(BackendName, LoweringSelection)>: Unpin,
*const LeafNode<BackendName, Vec<ElementName>> is !null: Unpin,
Box<(BackendName, Vec<ElementName>)>: Unpin,
*const LeafNode<OptionKey, OptionValue> is !null: Unpin,
Box<(OptionKey, OptionValue)>: Unpin,
Arc<dyn Finalizer>: Unpin,
Arc<dyn LateInit>: Unpin,
Box<ArgumentPlace>: Unpin,
Box<[Vec<FeatureName>]>: Unpin,
impl UnsafeUnpin for Rosterwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<FeatureInfo>: UnsafeUnpin,
PhantomData<ElementDef>: UnsafeUnpin,
PhantomData<Attachment>: UnsafeUnpin,
PhantomData<FallbackDef>: UnsafeUnpin,
PhantomData<ScopedPackageDef>: UnsafeUnpin,
PhantomData<OverrideDef>: UnsafeUnpin,
PhantomData<(FeatureName, CapabilityDef)>: UnsafeUnpin,
PhantomData<(FeatureName, CollectionDef)>: UnsafeUnpin,
PhantomData<(FeatureName, ArgumentRoleDef)>: UnsafeUnpin,
PhantomData<ElementTypeText>: UnsafeUnpin,
PhantomData<(FeatureName, CapName, CapName)>: UnsafeUnpin,
PhantomData<TableRecord>: UnsafeUnpin,
PhantomData<StageRecord>: UnsafeUnpin,
PhantomData<(FeatureName, OrderingDef)>: UnsafeUnpin,
PhantomData<(FeatureName, LoweringRule)>: UnsafeUnpin,
PhantomData<PresentationRecord>: UnsafeUnpin,
PhantomData<BackendRecord>: UnsafeUnpin,
PhantomData<(FeatureName, OutputDef)>: UnsafeUnpin,
PhantomData<(FeatureName, WorkflowDef)>: UnsafeUnpin,
PhantomData<OptionDecl>: UnsafeUnpin,
PhantomData<SlotDecl>: UnsafeUnpin,
PhantomData<Contribution>: UnsafeUnpin,
PhantomData<ServiceRequirement>: UnsafeUnpin,
PhantomData<(FeatureName, Arc<dyn Finalizer>)>: UnsafeUnpin,
PhantomData<(FeatureName, Arc<dyn LateInit>)>: UnsafeUnpin,
PhantomData<(FeatureName, StyleDef)>: UnsafeUnpin,
PhantomData<(FeatureName, ScriptDef)>: UnsafeUnpin,
PhantomData<(FeatureName, NativeImplication)>: UnsafeUnpin,
PhantomData<PeerBackendRecord>: UnsafeUnpin,
PhantomData<PeerElementRecord>: UnsafeUnpin,
PhantomData<PeerTableRecord>: UnsafeUnpin,
PhantomData<PeerScopedPackageRecord>: UnsafeUnpin,
PhantomData<PeerElementValueRecord>: UnsafeUnpin,
PhantomData<PeerArgumentRoleRecord>: UnsafeUnpin,
PhantomData<DigestInput>: UnsafeUnpin,
PhantomData<BuildError>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more