Struct rhai::MultiInputsStream
source · pub struct MultiInputsStream<'a> {
pub buf: [Option<char>; 2],
pub index: usize,
pub streams: StaticVec<Peekable<Chars<'a>>>,
}
Expand description
(internals) A type that implements the InputStream
trait.
Exported under the internals
feature only.
Multiple character streams are jointed together to form one single stream.
Fields§
§buf: [Option<char>; 2]
Buffered characters, if any.
index: usize
The current stream index.
streams: StaticVec<Peekable<Chars<'a>>>
Input character streams.
Trait Implementations§
source§impl InputStream for MultiInputsStream<'_>
impl InputStream for MultiInputsStream<'_>
Auto Trait Implementations§
impl<'a> Freeze for MultiInputsStream<'a>
impl<'a> RefUnwindSafe for MultiInputsStream<'a>
impl<'a> Send for MultiInputsStream<'a>
impl<'a> Sync for MultiInputsStream<'a>
impl<'a> Unpin for MultiInputsStream<'a>
impl<'a> UnwindSafe for MultiInputsStream<'a>
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