pub struct TypedValueVariantAttrs {
pub derive_fields: bool,
pub skip: bool,
pub todo: bool,
}Fields§
§derive_fields: boolSame as the top-level derive_fields, but included here because
struct variants are represented as both a variant and a type
definition.
skip: boolIf present, this variant is excluded from generated reification code.
to_typed() will always return None for it.
todo: boolMarks this variant as a placeholder for a future implementation.
Behavior is the same as skip, but used to indicate that reification
is intentionally left unimplemented for now.
Trait Implementations§
Source§impl Default for TypedValueVariantAttrs
impl Default for TypedValueVariantAttrs
Source§fn default() -> TypedValueVariantAttrs
fn default() -> TypedValueVariantAttrs
Returns the “default value” for a type. Read more
Source§impl FromVariant for TypedValueVariantAttrs
impl FromVariant for TypedValueVariantAttrs
Source§fn from_variant(__variant: &Variant) -> Result<Self>
fn from_variant(__variant: &Variant) -> Result<Self>
Create an instance from
syn::Variant, or return an error.Auto Trait Implementations§
impl Freeze for TypedValueVariantAttrs
impl RefUnwindSafe for TypedValueVariantAttrs
impl Send for TypedValueVariantAttrs
impl Sync for TypedValueVariantAttrs
impl Unpin for TypedValueVariantAttrs
impl UnwindSafe for TypedValueVariantAttrs
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