Struct SImm7Scaled
pub struct SImm7Scaled {
pub value: i16,
pub scale_ty: Type,
}
Expand description
A signed, scaled 7-bit offset.
Fields§
§value: i16
The value.
scale_ty: Type
multiplied by the size of this type
Implementations§
§impl SImm7Scaled
impl SImm7Scaled
pub fn maybe_from_i64(value: i64, scale_ty: Type) -> Option<SImm7Scaled>
pub fn maybe_from_i64(value: i64, scale_ty: Type) -> Option<SImm7Scaled>
Create a SImm7Scaled from a raw offset and the known scale type, if possible.
Trait Implementations§
§impl Clone for SImm7Scaled
impl Clone for SImm7Scaled
§fn clone(&self) -> SImm7Scaled
fn clone(&self) -> SImm7Scaled
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 more§impl Debug for SImm7Scaled
impl Debug for SImm7Scaled
impl Copy for SImm7Scaled
Auto Trait Implementations§
impl Freeze for SImm7Scaled
impl RefUnwindSafe for SImm7Scaled
impl Send for SImm7Scaled
impl Sync for SImm7Scaled
impl Unpin for SImm7Scaled
impl UnwindSafe for SImm7Scaled
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