Skip to content

feat(rust): make boolean conventions clearer - #4427

Merged
lidavidm merged 2 commits into
apache:mainfrom
abonander:ab/option-bool
Jun 23, 2026
Merged

feat(rust): make boolean conventions clearer#4427
lidavidm merged 2 commits into
apache:mainfrom
abonander:ab/option-bool

Conversation

@abonander

@abonander abonander commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Adds From<bool> for OptionValue and TryFrom<OptionValue> for bool (and TryFrom<&OptionValue>).

Documents boolean conventions on OptionValue for clarity/discoverability.

closes #4413

@abonander
abonander requested a review from wjones127 as a code owner June 22, 2026 15:56
Comment thread rust/core/src/options.rs
//! Various option and configuration types.
use std::{os::raw::c_int, str::FromStr};

use crate::constants::{ADBC_OPTION_VALUE_DISABLED, ADBC_OPTION_VALUE_ENABLED};

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see other references to this module are qualified under constants:: but I felt that would have made the docs unnecessarily noisy.

@abonander abonander changed the title feat(Rust): make boolean conventions clearer feat(rust): make boolean conventions clearer Jun 22, 2026

@lidavidm lidavidm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@lidavidm
lidavidm merged commit 790e840 into apache:main Jun 23, 2026
19 checks passed
@abonander
abonander deleted the ab/option-bool branch June 23, 2026 01:31
@lidavidm lidavidm added this to the ADBC Libraries 24 milestone Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rust: add boolean representation for OptionValue

2 participants