Crate redact_composer_core

Source
Expand description

Core library for redact_composer. Lib-level crates should depend on this rather than the application-level redact_composer.

Modules§

derive
Contains the derive macro of Element. Specifically kept separate in core, so exporting trait vs macro can be done separately
elements
Core types implementing Element.
error
Error types.
render
Types and traits used for and during composition rendering.
timing
Timing related structs and elements.
util
Re-exports of non-deterministic std::collections, with deterministic defaults.

Structs§

Composer
Provides methods to create compositions using a RenderEngine and its Renderers.
ComposerOptions
Options used by a Composer.
Composition
A composition output, including the tree of rendered segments, produced from Composer::compose.
CompositionOptions
Options used during the rendering of a Composition.
Segment
A (type-erased) Element spanning a Timing interval.
SegmentRef
A typed view of a Segment (references to its fields).

Enums§

PartType
Indicates whether a part is an instrument, or percussion.

Traits§

AsAny
Convenience trait for converting to [&dyn Any].
Element
Marker trait for any type that will be used as a composition element.
IntoSegment
Conversion methods to create a Segment from a Element.