Struct StdinRaw

pub(in ::io::stdio) struct StdinRaw(pub(in ::io::stdio) Stdin);

A handle to a raw instance of the standard input stream of this process.

This handle is not synchronized or buffered in any fashion. Constructed via the std::io::stdio::stdin_raw function.

Fields

0: Stdin

Trait Implementations

impl Read for StdinRaw

fn read(&mut self, buf: &mut [u8]) -> Result<usize>
fn read_buf(&mut self, buf: BorrowedCursor<'_, u8>) -> Result<()>
fn read_vectored(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize>
fn is_read_vectored(&self) -> bool
fn read_exact(&mut self, buf: &mut [u8]) -> Result<()>
fn read_buf_exact(&mut self, buf: BorrowedCursor<'_, u8>) -> Result<()>
fn read_to_end(&mut self, buf: &mut Vec<u8>) -> Result<usize>
fn read_to_string(&mut self, buf: &mut String) -> Result<usize>

Auto Trait Implementations

impl Freeze for StdinRaw

impl RefUnwindSafe for StdinRaw

impl Send for StdinRaw

impl Sync for StdinRaw

impl Unpin for StdinRaw

impl UnsafeUnpin for StdinRaw

impl UnwindSafe for StdinRaw

Blanket Implementations

impl<R> SpecReadByte for StdinRaw where R: Read,

fn spec_read_byte(&mut self) -> Option<Result<u8, Error>>

impl<T> Any for StdinRaw where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for StdinRaw where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for StdinRaw where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for StdinRaw

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> SizeHint for StdinRaw where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> SizedTypeProperties for StdinRaw

impl<T, U> Into<U> for StdinRaw where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for StdinRaw where U: Into<T>,

type Error = Infallible;
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto<U> for StdinRaw where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>