Struct pdl_compiler::analyzer::ast::FieldAnnotation
source · pub struct FieldAnnotation {
pub size: Size,
pub padded_size: Option<usize>,
}
Fields§
§size: Size
§padded_size: Option<usize>
Implementations§
Trait Implementations§
source§impl Clone for FieldAnnotation
impl Clone for FieldAnnotation
source§fn clone(&self) -> FieldAnnotation
fn clone(&self) -> FieldAnnotation
Returns a copy 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 FieldAnnotation
impl Debug for FieldAnnotation
source§impl Default for FieldAnnotation
impl Default for FieldAnnotation
source§fn default() -> FieldAnnotation
fn default() -> FieldAnnotation
Returns the “default value” for a type. Read more
source§impl PartialEq for FieldAnnotation
impl PartialEq for FieldAnnotation
source§fn eq(&self, other: &FieldAnnotation) -> bool
fn eq(&self, other: &FieldAnnotation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FieldAnnotation
impl StructuralEq for FieldAnnotation
impl StructuralPartialEq for FieldAnnotation
Auto Trait Implementations§
impl RefUnwindSafe for FieldAnnotation
impl Send for FieldAnnotation
impl Sync for FieldAnnotation
impl Unpin for FieldAnnotation
impl UnwindSafe for FieldAnnotation
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