Sticking layers of a quilt together.
laminating wood for a cutting board, you have:
Wood, glue, wood, glue, wood. Clamp together to dry.
Sand smooth, then add finish if desired.
For a quilt that you “spray baste”:
Fabric, glue, batting, glue, fabric. Instead of clamping, you are stretching/smoothing the layers as they meet up with the glue.
Then begin the actual quilting/stitching process to permanently bond all the layers together.
In the “olden” days, quiltmakers would use big basting stitches to hold everything together until the actual quilting was done. In the 1990’s, safety pinning the layers together came in vogue, but stopping to pull out pins gets old pretty fast. The thing that @BarkingChicken and @sinless mentioned is a small version of the “”guns” used by clothing retailers to attach tags to a garment. Somebody realized that if the shank of the plastic connector was really short, it would be sort of like a rivet to hold the layers together. But it is not without drawbacks. @BarkingChicken had issues with the plastic shanks getting entangled with her stitching, necessitating stitch removal to extricate the plastic bits. Which is not a happy occasion.