pub struct Range {
pub vmo: Handle,
pub offset: u64,
pub size: u64,
}
Expand description
A range of bytes within a VMO.
Fields§
§vmo: Handle
§offset: u64
§size: u64
Trait Implementations§
Source§impl EncodableOption for Box<Range>
impl EncodableOption for Box<Range>
Source§type EncodedOption = WireBox<WireRange>
type EncodedOption = WireBox<WireRange>
The wire type for the optional value.
Source§impl<___E> EncodeOption<___E> for Box<Range>
impl<___E> EncodeOption<___E> for Box<Range>
Source§fn encode_option(
this: Option<&mut Self>,
encoder: &mut ___E,
out: &mut MaybeUninit<Self::EncodedOption>,
) -> Result<(), EncodeError>
fn encode_option( this: Option<&mut Self>, encoder: &mut ___E, out: &mut MaybeUninit<Self::EncodedOption>, ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl TakeFrom<WireRange> for Range
impl TakeFrom<WireRange> for Range
Source§fn take_from(from: &WireRange) -> Self
fn take_from(from: &WireRange) -> Self
Converts from the given
T
, taking any resources that can’t be cloned.§const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied directly during
conversion instead of calling
take_from
. Read moreAuto Trait Implementations§
impl Freeze for Range
impl RefUnwindSafe for Range
impl Send for Range
impl Sync for Range
impl Unpin for Range
impl UnwindSafe for Range
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