Struct wit_parser::SizeAlign
source · pub struct SizeAlign { /* private fields */ }
Implementations
sourceimpl SizeAlign
impl SizeAlign
pub fn fill(&mut self, iface: &Interface)
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 RefUnwindSafe for SizeAlign
impl Send for SizeAlign
impl Sync for SizeAlign
impl Unpin for SizeAlign
impl UnwindSafe for SizeAlign
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more