Trait smart_read::ReadLine

source ·
pub trait ReadLine {
    type Output;

    // Required method
    fn try_read_line(
        &self,
        read_data: ReadData<Self::Output>
    ) -> BoxResult<Self::Output>;
}
Expand description

This is what powers the whole crate. Any struct that implements this can be used with the macros

Required Associated Types§

Required Methods§

source

fn try_read_line( &self, read_data: ReadData<Self::Output> ) -> BoxResult<Self::Output>

Implementations on Foreign Types§

source§

impl ReadLine for ()

§

type Output = String

source§

fn try_read_line( &self, read_data: ReadData<Self::Output> ) -> BoxResult<Self::Output>

source§

impl<'a, T: Display + Clone + PartialEq> ReadLine for &[T]

§

type Output = T

source§

fn try_read_line( &self, read_data: ReadData<Self::Output> ) -> BoxResult<Self::Output>

source§

impl<'a, T: Display + Clone + PartialEq> ReadLine for LinkedList<T>

§

type Output = T

source§

fn try_read_line( &self, read_data: ReadData<Self::Output> ) -> BoxResult<Self::Output>

source§

impl<'a, T: Display + Clone + PartialEq> ReadLine for VecDeque<T>

§

type Output = T

source§

fn try_read_line( &self, read_data: ReadData<Self::Output> ) -> BoxResult<Self::Output>

source§

impl<'a, T: Display + Clone + PartialEq> ReadLine for Vec<T>

§

type Output = T

source§

fn try_read_line( &self, read_data: ReadData<Self::Output> ) -> BoxResult<Self::Output>

source§

impl<'a, T: Display + Clone + PartialEq, const LEN: usize> ReadLine for &[T; LEN]

§

type Output = T

source§

fn try_read_line( &self, read_data: ReadData<Self::Output> ) -> BoxResult<Self::Output>

source§

impl<'a, T: Display + FromStr + PartialOrd<T>> ReadLine for Range<T>

§

type Output = T

source§

fn try_read_line( &self, read_data: ReadData<Self::Output> ) -> BoxResult<Self::Output>

source§

impl<'a, T: Display + FromStr + PartialOrd<T>> ReadLine for RangeFrom<T>

§

type Output = T

source§

fn try_read_line( &self, read_data: ReadData<Self::Output> ) -> BoxResult<Self::Output>

source§

impl<'a, T: Display + FromStr + PartialOrd<T>> ReadLine for RangeInclusive<T>

§

type Output = T

source§

fn try_read_line( &self, read_data: ReadData<Self::Output> ) -> BoxResult<Self::Output>

source§

impl<'a, T: Display + FromStr + PartialOrd<T>> ReadLine for RangeTo<T>

§

type Output = T

source§

fn try_read_line( &self, read_data: ReadData<Self::Output> ) -> BoxResult<Self::Output>

source§

impl<'a, T: Display + FromStr + PartialOrd<T>> ReadLine for RangeToInclusive<T>

§

type Output = T

source§

fn try_read_line( &self, read_data: ReadData<Self::Output> ) -> BoxResult<Self::Output>

Implementors§