[][src]Struct phpser::Cursor

pub struct Cursor<S> { /* fields omitted */ }

A stateful wrapper to make a Str a readable Source

Implementations

impl<'de, S: Str<'de>> Cursor<S>[src]

pub fn new(source: S) -> Self[src]

Creates a Cursor that reads the whole Str

Trait Implementations

impl<'de, S: Str<'de>> Source<'de, S> for Cursor<S>[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for Cursor<S> where
    S: RefUnwindSafe

impl<S> Send for Cursor<S> where
    S: Send

impl<S> Sync for Cursor<S> where
    S: Sync

impl<S> Unpin for Cursor<S> where
    S: Unpin

impl<S> UnwindSafe for Cursor<S> where
    S: UnwindSafe

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<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.