[−][src]Struct disasm::binary::BinaryData
Reference counted and memory mapped binary data.
Implementations
impl BinaryData[src]
pub fn from_file(file: &File) -> Result<Self>[src]
Loads binary data from a file.
pub fn slice<R>(&self, range: R) -> BinaryDataⓘNotable traits for BinaryData
impl Read for BinaryData where
R: RangeBounds<usize>, [src]
Notable traits for BinaryData
impl Read for BinaryDataR: RangeBounds<usize>,
Trait Implementations
impl Clone for BinaryData[src]
fn clone(&self) -> BinaryDataⓘNotable traits for BinaryData
impl Read for BinaryData[src]
Notable traits for BinaryData
impl Read for BinaryDatafn clone_from(&mut self, source: &Self)1.0.0[src]
impl CloneStableDeref for BinaryData[src]
impl Debug for BinaryData[src]
impl Deref for BinaryData[src]
impl Read for BinaryData[src]
fn read(&mut self, buf: &mut [u8]) -> Result<usize>[src]
fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize, Error>1.36.0[src]
fn is_read_vectored(&self) -> bool[src]
unsafe fn initializer(&self) -> Initializer[src]
fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize, Error>1.0.0[src]
fn read_to_string(&mut self, buf: &mut String) -> Result<usize, Error>1.0.0[src]
fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), Error>1.6.0[src]
fn by_ref(&mut self) -> &mut Self1.0.0[src]
fn bytes(self) -> Bytes<Self>1.0.0[src]
fn chain<R>(self, next: R) -> Chain<Self, R> where
R: Read, 1.0.0[src]
R: Read,
fn take(self, limit: u64) -> Take<Self>1.0.0[src]
impl Seek for BinaryData[src]
fn seek(&mut self, pos: SeekFrom) -> Result<u64>[src]
fn stream_len(&mut self) -> Result<u64, Error>[src]
fn stream_position(&mut self) -> Result<u64, Error>[src]
impl StableDeref for BinaryData[src]
Auto Trait Implementations
impl !RefUnwindSafe for BinaryData
impl !Send for BinaryData
impl !Sync for BinaryData
impl Unpin for BinaryData
impl UnwindSafe for BinaryData
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<Ctx, R> IOread<Ctx> for R where
Ctx: Copy,
R: Read + ?Sized,
Ctx: Copy,
R: Read + ?Sized,
fn ioread<N>(&mut self) -> Result<N, Error> where
Ctx: Default,
N: FromCtx<Ctx, [u8]> + SizeWith<Ctx>,
Ctx: Default,
N: FromCtx<Ctx, [u8]> + SizeWith<Ctx>,
fn ioread_with<N>(&mut self, ctx: Ctx) -> Result<N, Error> where
N: FromCtx<Ctx, [u8]> + SizeWith<Ctx>,
N: FromCtx<Ctx, [u8]> + SizeWith<Ctx>,
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<'s, T> Source<'s> for T where
T: Read + Seek + Debug + 's, [src]
T: Read + Seek + Debug + 's,
pub fn view(
&mut self,
slices: &[SourceSlice]
) -> Result<Box<dyn SourceView<'s> + 'static>, Error>[src]
&mut self,
slices: &[SourceSlice]
) -> Result<Box<dyn SourceView<'s> + 'static>, Error>
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,