#[non_exhaustive]pub enum EnumTypeOverride {
Open,
}Expand description
Supported values for FeatureOverride::EnumType.
Only OPEN is currently supported — closing an open enum would
reintroduce closed-enum unknown-value routing on fields that never had
it, a combination buffa’s codegen does not yet validate or test.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Open
features.enum_type = OPEN: matching closed enum fields generate as
EnumValue<E>, making unknown wire values directly visible as
EnumValue::Unknown(n).
Trait Implementations§
Source§impl Clone for EnumTypeOverride
impl Clone for EnumTypeOverride
Source§fn clone(&self) -> EnumTypeOverride
fn clone(&self) -> EnumTypeOverride
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EnumTypeOverride
Source§impl Debug for EnumTypeOverride
impl Debug for EnumTypeOverride
impl Eq for EnumTypeOverride
Source§impl PartialEq for EnumTypeOverride
impl PartialEq for EnumTypeOverride
impl StructuralPartialEq for EnumTypeOverride
Auto Trait Implementations§
impl Freeze for EnumTypeOverride
impl RefUnwindSafe for EnumTypeOverride
impl Send for EnumTypeOverride
impl Sync for EnumTypeOverride
impl Unpin for EnumTypeOverride
impl UnsafeUnpin for EnumTypeOverride
impl UnwindSafe for EnumTypeOverride
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more