[][src]Struct oak_runtime::str_stream::StrStream

pub struct StrStream<'a> { /* fields omitted */ }

Represents a stream from a &'a str. It implements all traits required by CharStream.

Implementations

impl<'a> StrStream<'a>[src]

pub fn line_column(&self) -> (usize, usize)[src]

pub fn bytes_offset(&self) -> usize[src]

pub fn current_char(&self) -> Option<char>[src]

pub fn slice(&self, end: StrStream<'a>) -> &'a str[src]

Trait Implementations

impl<'a> Clone for StrStream<'a>[src]

impl<'a> CodeSnippet for StrStream<'a>[src]

impl<'a> ConsumePrefix<&'static str> for StrStream<'a>[src]

impl<'a> Debug for StrStream<'a>[src]

impl<'a> Eq for StrStream<'a>[src]

impl<'a> HasNext for StrStream<'a>[src]

impl<'a> Hash for StrStream<'a>[src]

impl<'a> Iterator for StrStream<'a>[src]

type Item = char

The type of the elements being iterated over.

impl<'a> Location for StrStream<'a>[src]

impl<'a> Ord for StrStream<'a>[src]

impl<'a> PartialEq<StrStream<'a>> for StrStream<'a>[src]

impl<'a> PartialOrd<StrStream<'a>> for StrStream<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for StrStream<'a>[src]

impl<'a> Send for StrStream<'a>[src]

impl<'a> Sync for StrStream<'a>[src]

impl<'a> Unpin for StrStream<'a>[src]

impl<'a> UnwindSafe for StrStream<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.