pub enum FieldDesc {
Show 15 variants
Checksum {
field_id: String,
},
Padding {
size: usize,
},
Size {
field_id: String,
width: usize,
},
Count {
field_id: String,
width: usize,
},
ElementSize {
field_id: String,
width: usize,
},
Body,
Payload {
size_modifier: Option<String>,
},
FixedScalar {
width: usize,
value: usize,
},
FixedEnum {
enum_id: String,
tag_id: String,
},
Reserved {
width: usize,
},
Array {
id: String,
width: Option<usize>,
type_id: Option<String>,
size_modifier: Option<String>,
size: Option<usize>,
},
Scalar {
id: String,
width: usize,
},
Flag {
id: String,
optional_field_ids: Vec<(String, usize)>,
},
Typedef {
id: String,
type_id: String,
},
Group {
group_id: String,
constraints: Vec<Constraint>,
},
}
Variants§
Checksum
Padding
Size
Count
ElementSize
Body
Payload
FixedScalar
FixedEnum
Reserved
Array
Fields
Scalar
Flag
Special case of Scalar for fields used as condition for optional fields. The width is always 1.
Typedef
Group
Trait Implementations§
impl Eq for FieldDesc
impl StructuralPartialEq for FieldDesc
Auto Trait Implementations§
impl Freeze for FieldDesc
impl RefUnwindSafe for FieldDesc
impl Send for FieldDesc
impl Sync for FieldDesc
impl Unpin for FieldDesc
impl UnwindSafe for FieldDesc
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