Enum pdl_compiler::analyzer::ast::Size
source · pub enum Size {
Static(usize),
Dynamic,
Unknown,
}
Expand description
Field and declaration size information.
Variants§
Static(usize)
Constant size in bits.
Dynamic
Size indicated at packet parsing by a size or count field. The parameter is the static part of the size.
Unknown
The size cannot be determined statically or at runtime. The packet assumes the largest possible size.
Implementations§
Trait Implementations§
source§impl PartialEq<Size> for Size
impl PartialEq<Size> for Size
impl Copy for Size
impl Eq for Size
impl StructuralEq for Size
impl StructuralPartialEq for Size
Auto Trait Implementations§
impl RefUnwindSafe for Size
impl Send for Size
impl Sync for Size
impl Unpin for Size
impl UnwindSafe for Size
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