Merge pull request 'clean up builder API' (#24) from clean-up-uart-cfg-bulder-api into main
shared-hal-ci / Check build (push) Has been cancelled
shared-hal-ci / Check formatting (push) Has been cancelled
shared-hal-ci / Check Documentation Build (push) Has been cancelled
shared-hal-ci / Clippy (push) Has been cancelled
va108xx-ci / Check build (push) Has been cancelled
va108xx-ci / Run Tests (push) Has been cancelled
va108xx-ci / Check formatting (push) Has been cancelled
va108xx-ci / Check Documentation Build (push) Has been cancelled
va108xx-ci / Clippy (push) Has been cancelled
va416xx-ci / Check build (push) Has been cancelled
va416xx-ci / Run Tests (push) Has been cancelled
va416xx-ci / Check formatting (push) Has been cancelled
va416xx-ci / Check Documentation Build (push) Has been cancelled
va416xx-ci / Clippy (push) Has been cancelled

Reviewed-on: http://localhost:3000/rust/vorago-rs/pulls/24
This commit was merged in pull request #24.
This commit is contained in:
2026-04-25 22:27:48 +02:00
+6 -6
View File
@@ -212,32 +212,32 @@ impl Config {
}
}
pub fn clock_config(mut self, clock_config: ClockConfig) -> Self {
pub fn with_clock_config(mut self, clock_config: ClockConfig) -> Self {
self.clock_config = clock_config;
self
}
pub fn parity_none(mut self) -> Self {
pub fn with_parity_none(mut self) -> Self {
self.parity = Parity::None;
self
}
pub fn parity_even(mut self) -> Self {
pub fn with_parity_even(mut self) -> Self {
self.parity = Parity::Even;
self
}
pub fn parity_odd(mut self) -> Self {
pub fn with_parity_odd(mut self) -> Self {
self.parity = Parity::Odd;
self
}
pub fn stopbits(mut self, stopbits: Stopbits) -> Self {
pub fn with_stopbits(mut self, stopbits: Stopbits) -> Self {
self.stopbits = stopbits;
self
}
pub fn wordsize(mut self, wordsize: WordSize) -> Self {
pub fn with_wordsize(mut self, wordsize: WordSize) -> Self {
self.wordsize = wordsize;
self
}