Comment by afdbcreid
6 hours ago
That means those are probably builders and not setters. Do they change an existing object or a newly-constructed or to-be-constructed object?
6 hours ago
That means those are probably builders and not setters. Do they change an existing object or a newly-constructed or to-be-constructed object?
They are setters. They modify an element after instantiation. Mostly as part of the initial build, but then also in the event closure. Under the hood, a struct with interiorly mutable fields.
This sounds a lot like a builder but the line can be blurry. For a Rust stdlib example, the `process::Command` type is considered a builder even though it is not named "CommandBuilder", and the final operation is spawning a subprocess, not returning some other data.
Gotcha, so in your case, users of the library will set values much more often than read them (since the reading will be done by the TUI framework for display).