Assume the following enumeration type is defined somewhere in my Rust library:
#[derive(Debug)]
pub enum Color {
Red,
Green,
Blue,
}
Is it considered a breaking change when I add a fourth variant Color::Yellow
to the enum? If it is a breaking change (I guess so because of the match
statement), is there a way to indicate to API users that this type might be extended in the future?