Lines Matching full:variant
12 /// An enum variant.
14 pub struct Variant {
17 /// Name of the variant.
20 /// Content stored in the variant.
23 /// Explicit discriminant: `Variant = 1`
29 /// Data stored within an enum variant or struct.
38 /// Named fields of a struct or struct variant such as `Point { x: f64,
42 /// Unnamed fields of a tuple struct or tuple variant such as `Some(T)`.
45 /// Unit struct or unit variant such as `None`.
51 /// Named fields of a struct or struct variant such as `Point { x: f64,
61 /// Unnamed fields of a tuple struct or tuple variant such as `Some(T)`.
72 /// variant's fields uniformly.
83 /// struct or variant's fields uniformly.
111 /// Get an iterator over the fields of a struct or variant as [`Member`]s.
113 /// variant's fields uniformly.
184 /// A field of a struct or enum variant.
244 use crate::data::{Field, Fields, FieldsNamed, FieldsUnnamed, Variant};
260 impl Parse for Variant { implementation
292 Ok(Variant { in parse()
378 use crate::data::{Field, FieldsNamed, FieldsUnnamed, Variant};
384 impl ToTokens for Variant { implementation