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