pub struct InputStream { /* private fields */ }Implementations§
Source§impl InputStream
impl InputStream
Sourcepub fn new(input: impl AsRef<str>) -> Self
pub fn new(input: impl AsRef<str>) -> Self
Creates a character stream from UTF-8 text using ANTLR’s unknown source name placeholder.
Trait Implementations§
Source§impl CharStream for InputStream
impl CharStream for InputStream
Source§fn text(&self, interval: TextInterval) -> String
fn text(&self, interval: TextInterval) -> String
Returns text for an inclusive interval of Unicode scalar indices.
Source§impl Clone for InputStream
impl Clone for InputStream
Source§fn clone(&self) -> InputStream
fn clone(&self) -> InputStream
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InputStream
impl Debug for InputStream
Source§impl IntStream for InputStream
impl IntStream for InputStream
Auto Trait Implementations§
impl Freeze for InputStream
impl RefUnwindSafe for InputStream
impl Send for InputStream
impl Sync for InputStream
impl Unpin for InputStream
impl UnsafeUnpin for InputStream
impl UnwindSafe for InputStream
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