Struct wit_parser::SizeAlign
source · pub struct SizeAlign { /* private fields */ }
Implementations§
source§impl SizeAlign
impl SizeAlign
pub fn new(wasm_type: AddressSize) -> Self
pub fn fill(&mut self, resolve: &Resolve)
pub fn size(&self, ty: &Type) -> usize
pub fn align(&self, ty: &Type) -> usize
pub fn field_offsets<'a>( &self, types: impl IntoIterator<Item = &'a Type>, ) -> Vec<(usize, &'a Type)>
pub fn payload_offset<'a>( &self, tag: Int, cases: impl IntoIterator<Item = Option<&'a Type>>, ) -> usize
pub fn record<'a>( &self, types: impl Iterator<Item = &'a Type>, ) -> (usize, usize)
pub fn params<'a>( &self, types: impl IntoIterator<Item = &'a Type>, ) -> (usize, usize)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SizeAlign
impl RefUnwindSafe for SizeAlign
impl Send for SizeAlign
impl Sync for SizeAlign
impl Unpin for SizeAlign
impl UnwindSafe for SizeAlign
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