Struct io_arrays::ArrayReader [−][src]
A random-access input source.
Implementations
impl ArrayReader[src]
#[must_use]pub fn file<Filelike: IntoUnsafeFile + Read + Seek>(filelike: Filelike) -> Self[src]
Convert a File into a ArrayReader.
pub fn bytes(bytes: &[u8]) -> Result<Self>[src]
Copy a slice of bytes into a memory buffer to allow it to be accessed in the manner of an array.
Trait Implementations
impl Array for ArrayReader[src]
fn metadata(&self) -> Result<Metadata>[src]
fn advise(&self, offset: u64, len: u64, advice: Advice) -> Result<()>[src]
impl AsRawHandle for ArrayReader[src]
fn as_raw_handle(&self) -> RawHandle[src]
impl AsRawHandleOrSocket for ArrayReader[src]
fn as_raw_handle_or_socket(&self) -> RawHandleOrSocket[src]
impl Debug for ArrayReader[src]
impl OwnsRaw for ArrayReader[src]
impl ReadAt for ArrayReader[src]
fn read_at(&self, buf: &mut [u8], offset: u64) -> Result<usize>[src]
fn read_exact_at(&self, buf: &mut [u8], offset: u64) -> Result<()>[src]
fn read_vectored_at(
&self,
bufs: &mut [IoSliceMut<'_>],
offset: u64
) -> Result<usize>[src]
&self,
bufs: &mut [IoSliceMut<'_>],
offset: u64
) -> Result<usize>
fn read_exact_vectored_at(
&self,
bufs: &mut [IoSliceMut<'_>],
offset: u64
) -> Result<()>[src]
&self,
bufs: &mut [IoSliceMut<'_>],
offset: u64
) -> Result<()>
fn is_read_vectored_at(&self) -> bool[src]
fn read_via_stream_at(&self, offset: u64) -> Result<StreamReader>[src]
Auto Trait Implementations
impl RefUnwindSafe for ArrayReader
impl Send for ArrayReader
impl Sync for ArrayReader
impl Unpin for ArrayReader
impl UnwindSafe for ArrayReader
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> AsUnsafeFile for T where
T: OwnsRaw + AsUnsafeHandle + AsRawHandle, [src]
T: OwnsRaw + AsUnsafeHandle + AsRawHandle,
pub fn as_unsafe_file(&self) -> UnsafeFile[src]
pub fn as_file_view(&self) -> View<'_, File>[src]
pub unsafe fn as_unscoped_file_view(&self) -> View<'static, File>[src]
pub fn as_pipe_reader_view(&self) -> View<'_, PipeReader>[src]
pub unsafe fn as_unscoped_pipe_reader_view(&self) -> View<'static, PipeReader>[src]
pub fn as_pipe_writer_view(&self) -> View<'_, PipeWriter>[src]
pub unsafe fn as_unscoped_pipe_writer_view(&self) -> View<'static, PipeWriter>[src]
pub fn eq_file<Filelike>(&self, other: &Filelike) -> bool where
Filelike: AsUnsafeFile, [src]
Filelike: AsUnsafeFile,
impl<T> AsUnsafeHandle for T where
T: OwnsRaw + AsRawHandleOrSocket, [src]
T: OwnsRaw + AsRawHandleOrSocket,
pub fn as_unsafe_handle(&self) -> UnsafeHandle[src]
pub fn eq_handle<Handlelike>(&self, other: &Handlelike) -> bool where
Handlelike: AsUnsafeHandle, [src]
Handlelike: AsUnsafeHandle,
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<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> SetTimes for T where
T: AsUnsafeFile,
T: AsUnsafeFile,
pub fn set_times(
&self,
atime: Option<SystemTimeSpec>,
mtime: Option<SystemTimeSpec>
) -> Result<(), Error>
&self,
atime: Option<SystemTimeSpec>,
mtime: Option<SystemTimeSpec>
) -> Result<(), Error>
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,