Skip to main content

Roster

Struct Roster 

Source
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§

Source§

impl Default for Roster

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for Roster

§

impl !UnwindSafe for Roster

§

impl Forget for Roster

§

impl Freeze for Roster
where *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 Roster
where 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 Roster
where 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 Roster

§

impl UnsafeUnpin for Roster
where *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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Az for T

Source§

fn az<Dst>(self) -> Dst
where T: Cast<Dst>,

Casts the value.
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<Src, Dst> CastFrom<Src> for Dst
where Src: Cast<Dst>,

Source§

fn cast_from(src: Src) -> Dst

Casts the value.
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> CheckedAs for T

Source§

fn checked_as<Dst>(self) -> Option<Dst>
where T: CheckedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> CheckedCastFrom<Src> for Dst
where Src: CheckedCast<Dst>,

Source§

fn checked_cast_from(src: Src) -> Option<Dst>

Casts the value.
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<Src, Dst> LosslessTryInto<Dst> for Src
where Dst: LosslessTryFrom<Src>,

Source§

fn lossless_try_into(self) -> Option<Dst>

Performs the conversion.
Source§

impl<Src, Dst> LossyInto<Dst> for Src
where Dst: LossyFrom<Src>,

Source§

fn lossy_into(self) -> Dst

Performs the conversion.
Source§

impl<T> OverflowingAs for T

Source§

fn overflowing_as<Dst>(self) -> (Dst, bool)
where T: OverflowingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> OverflowingCastFrom<Src> for Dst
where Src: OverflowingCast<Dst>,

Source§

fn overflowing_cast_from(src: Src) -> (Dst, bool)

Casts the value.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

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

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> SaturatingAs for T

Source§

fn saturating_as<Dst>(self) -> Dst
where T: SaturatingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> SaturatingCastFrom<Src> for Dst
where Src: SaturatingCast<Dst>,

Source§

fn saturating_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> StrictAs for T

Source§

fn strict_as<Dst>(self) -> Dst
where T: StrictCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> StrictCastFrom<Src> for Dst
where Src: StrictCast<Dst>,

Source§

fn strict_cast_from(src: Src) -> Dst

Casts the value.
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.
Source§

impl<T> UnwrappedAs for T

Source§

fn unwrapped_as<Dst>(self) -> Dst
where T: UnwrappedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> UnwrappedCastFrom<Src> for Dst
where Src: UnwrappedCast<Dst>,

Source§

fn unwrapped_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> WrappingAs for T

Source§

fn wrapping_as<Dst>(self) -> Dst
where T: WrappingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> WrappingCastFrom<Src> for Dst
where Src: WrappingCast<Dst>,

Source§

fn wrapping_cast_from(src: Src) -> Dst

Casts the value.