pub struct Range<S = ()> {
pub value: Box<Expression<S>>,
pub start: RangeParam,
pub size: RangeParam,
}Expand description
x[start, size] — size bits of x, counting from bit start.
Bit 0 is the least significant. The result is the smallest whole number of
bytes that holds size bits.
Fields§
§value: Box<Expression<S>>The value being sliced.
start: RangeParamIndex of the lowest bit taken, counting from the least significant.
size: RangeParamHow many bits to take.
Implementations§
Source§impl Range
impl Range
Sourcepub fn pretty_print(&self, spec: &impl PcodeResolver) -> String
pub fn pretty_print(&self, spec: &impl PcodeResolver) -> String
Renders this range in a diagnostic-oriented SLEIGH-like syntax.
Trait Implementations§
Source§impl<'de, S> Deserialize<'de> for Range<S>where
S: Deserialize<'de>,
impl<'de, S> Deserialize<'de> for Range<S>where
S: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<S: Eq> Eq for Range<S>
impl<S: PartialEq> StructuralPartialEq for Range<S>
Auto Trait Implementations§
impl<S> Freeze for Range<S>
impl<S> RefUnwindSafe for Range<S>
impl<S> Send for Range<S>
impl<S> Sync for Range<S>
impl<S> Unpin for Range<S>
impl<S> UnsafeUnpin for Range<S>
impl<S> UnwindSafe for Range<S>
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