pub struct ChiselSourceRead<'a, R: Read>(pub &'a mut R);Expand description
A wrapper struct that implements ChiselSource via a Read implementation.
See Chisel::from_read for more information.
Tuple Fields§
§0: &'a mut RTrait Implementations§
Source§impl<'a, R: Read> ChiselSource for ChiselSourceRead<'a, R>
Available on crate feature std only. 
impl<'a, R: Read> ChiselSource for ChiselSourceRead<'a, 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<'a, R> Freeze for ChiselSourceRead<'a, R>
impl<'a, R> RefUnwindSafe for ChiselSourceRead<'a, R>where
    R: RefUnwindSafe,
impl<'a, R> Send for ChiselSourceRead<'a, R>where
    R: Send,
impl<'a, R> Sync for ChiselSourceRead<'a, R>where
    R: Sync,
impl<'a, R> Unpin for ChiselSourceRead<'a, R>
impl<'a, R> !UnwindSafe for ChiselSourceRead<'a, R>
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