Crate scones_examples

Source

Structs§

  • A basic example which generates a default constructor.
  • An example showing how to create a builder.
  • A builder which creates an instance of BasicBuilt.
  • An example showing how to add extra arguments to a constructor and use those arguments to initialize the existing fields.
  • An example showing how to efficiently create multiple constructors.
  • A builder which creates an instance of OptionalBuilt.
  • An example showing how to add optional fields to a builder.
  • A builder which creates an instance of OverridableBuilt.
  • An example showing how to use overrides in builders.
  • An example showing how to return a Result from a construtor.
  • An example showing that all this crate’s features work with templated types.
  • A builder which creates an instance of Templated.
  • A builder which creates an instance of Templated.
  • An example showing the semantics for tuple structs.
  • A builder which creates an instance of TupleStruct.