pub struct ChiselSourceBufRead<R: BufRead>(pub R);Expand description
A wrapper struct that implements ChiselSource via a BufRead implementation.
See Chisel::from_buf_read for more information.
Tuple Fields§
§0: RTrait Implementations§
Source§impl<R: BufRead> ChiselSource for ChiselSourceBufRead<R>
Available on crate feature std only.
impl<R: BufRead> ChiselSource for ChiselSourceBufRead<R>
Available on crate feature
std only.Source§fn read_exact(
&mut self,
buffer: &mut [u8],
) -> Result<(), ChiselSourceError<Self::Error>>
fn read_exact( &mut self, buffer: &mut [u8], ) -> Result<(), ChiselSourceError<Self::Error>>
Reads the exact number of bytes to fill
buffer. Read moreSource§fn read_until(
&mut self,
byte: u8,
into: &mut Vec<u8>,
) -> Result<ReadUntilStopReason, Self::Error>
fn read_until( &mut self, byte: u8, into: &mut Vec<u8>, ) -> Result<ReadUntilStopReason, Self::Error>
Reads until the given delimiter byte is found or end-of-input occurs. Read more
Auto Trait Implementations§
impl<R> Freeze for ChiselSourceBufRead<R>where
R: Freeze,
impl<R> RefUnwindSafe for ChiselSourceBufRead<R>where
R: RefUnwindSafe,
impl<R> Send for ChiselSourceBufRead<R>where
R: Send,
impl<R> Sync for ChiselSourceBufRead<R>where
R: Sync,
impl<R> Unpin for ChiselSourceBufRead<R>where
R: Unpin,
impl<R> UnsafeUnpin for ChiselSourceBufRead<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for ChiselSourceBufRead<R>where
R: UnwindSafe,
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