Module former::exposed

source ·
Expand description

Exposed namespace of the module.

Structs§

  • A wrapper around a closure to be used as a FormingEnd.
  • A builder for constructing hash map-like structures with a fluent interface.
  • Facilitates building HashSetLike containers with a fluent API.
  • A FormingEnd implementation that returns the formed container itself instead of the context.
  • A builder for constructing VectorLike containers, facilitating a fluent and flexible interface.

Traits§

  • The AssignWithType trait provides a mechanism to set a component on an object, utilizing the type information explicitly. This trait extends the functionality of SetComponent by allowing implementers to specify the component’s type at the method call site, enhancing expressiveness in code that manipulates object states.
  • Provides a generic interface for setting a component of a certain type on an object.
  • A trait defining the capability to add elements to a container.
  • A trait defining the capability to replface all elements.
  • A trait defining the initialization process for a subformer with contextual linkage.
  • Defines a handler for the end of a subforming process, enabling the return of the original context.
  • A trait for types that behave like hash maps, supporting insertion and custom forming behaviors.
  • A trait for containers behaving like a HashSet, allowing insertion operations.
  • Trait for containers that behave like a vector, providing an interface for element addition.

Derive Macros§

  • Derives the ComponentAssign trait for struct fields, allowing each field to be set with a value that can be converted into the field’s type.
  • Macro to implement From for each component (field) of a structure. This macro simplifies the creation of From trait implementations for struct fields, enabling easy conversion from a struct reference to its field types.
  • Derives the ComponentsAssign trait for a struct, enabling components_assign which set all fields at once.
  • Derive macro to generate former for a structure. Former is variation of Builder Pattern.
  • A procedural macro to automatically derive the From<T> trait implementation for a struct, enabling instances of one type to be converted from instances of another type.