pub enum AstTypeExpr {
Named {
name: String,
span: Option<Span>,
},
Bits {
width: u16,
span: Option<Span>,
},
Match {
field_name: String,
branches: Vec<AstMatchBranch>,
span: Option<Span>,
},
Bytes {
kind: AstBytesKind,
fixed_size: Option<u64>,
size_expr: Option<Box<AstExpr>>,
span: Option<Span>,
},
Array {
element_type: Box<AstTypeExpr>,
count: AstArrayCount,
within_expr: Option<Box<AstExpr>>,
span: Option<Span>,
},
Optional {
condition: AstExpr,
inner_type: Box<AstTypeExpr>,
span: Option<Span>,
},
Asn1 {
type_name: String,
encoding: String,
length: Asn1Length,
span: Option<Span>,
},
}Variants§
Named
Bits
Match
Bytes
Fields
§
kind: AstBytesKindArray
Optional
Asn1
Trait Implementations§
Source§impl Clone for AstTypeExpr
impl Clone for AstTypeExpr
Source§fn clone(&self) -> AstTypeExpr
fn clone(&self) -> AstTypeExpr
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AstTypeExpr
impl Debug for AstTypeExpr
Source§impl PartialEq for AstTypeExpr
impl PartialEq for AstTypeExpr
impl StructuralPartialEq for AstTypeExpr
Auto Trait Implementations§
impl Freeze for AstTypeExpr
impl RefUnwindSafe for AstTypeExpr
impl Send for AstTypeExpr
impl Sync for AstTypeExpr
impl Unpin for AstTypeExpr
impl UnsafeUnpin for AstTypeExpr
impl UnwindSafe for AstTypeExpr
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