Skip to main content

RealStrRead

Trait RealStrRead 

Source
pub trait RealStrRead: StrRead {
    // Required method
    fn pop_str(&mut self) -> Option<&str>;
}
Expand description

Represent anything that pops out &str.

Required Methods§

Source

fn pop_str(&mut self) -> Option<&str>

Remove the next &str and return it.

Returns None if it’s empty.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl RealStrRead for str

Source§

fn pop_str(&mut self) -> Option<&str>

Source§

impl<R: RealStrRead + ?Sized> RealStrRead for Box<R>

Source§

fn pop_str(&mut self) -> Option<&str>

Implementors§

Source§

impl<'a, R: RealStrRead> RealStrRead for StrReader<'a, R>