pub struct Parameter<'input> { /* private fields */ }Expand description
A function parameter.
Implementations§
Source§impl<'input> Parameter<'input>
impl<'input> Parameter<'input>
Sourcepub fn type_offset(&self) -> TypeOffset
pub fn type_offset(&self) -> TypeOffset
The type offset of the parameter.
A type offset is unique for all types in a file.
Sourcepub fn ty<'a>(
&self,
hash: &'a FileHash<'input>,
) -> Option<Cow<'a, Type<'input>>>
pub fn ty<'a>( &self, hash: &'a FileHash<'input>, ) -> Option<Cow<'a, Type<'input>>>
The type of the parameter.
Sourcepub fn byte_size(&self, hash: &FileHash<'_>) -> Option<u64>
pub fn byte_size(&self, hash: &FileHash<'_>) -> Option<u64>
The size in bytes of the parameter.
Sourcepub fn registers(&self) -> impl Iterator<Item = (Range, Register)> + '_
pub fn registers(&self) -> impl Iterator<Item = (Range, Register)> + '_
The registers in which this parameter is stored.
Sourcepub fn register_offsets(
&self,
) -> impl Iterator<Item = (Range, Register, i64)> + '_
pub fn register_offsets( &self, ) -> impl Iterator<Item = (Range, Register, i64)> + '_
The registers pointing to where this variable is stored.
Sourcepub fn frame_locations(&self) -> impl Iterator<Item = FrameLocation> + '_
pub fn frame_locations(&self) -> impl Iterator<Item = FrameLocation> + '_
The stack frame locations at which this parameter is stored.
Trait Implementations§
Auto Trait Implementations§
impl<'input> Freeze for Parameter<'input>
impl<'input> RefUnwindSafe for Parameter<'input>
impl<'input> Send for Parameter<'input>
impl<'input> Sync for Parameter<'input>
impl<'input> Unpin for Parameter<'input>
impl<'input> UnwindSafe for Parameter<'input>
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