Skip to content

Commit 7c00cf9

Browse files
committed
Add ConstOption struct
1 parent fde8086 commit 7c00cf9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/const_choice.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,11 @@ impl PartialEq for ConstChoice {
173173
}
174174
}
175175

176+
pub struct ConstOption<T> {
177+
value: T,
178+
is_some: Choice,
179+
}
180+
176181
#[cfg(test)]
177182
mod tests {
178183
use super::ConstChoice;

0 commit comments

Comments
 (0)