Trait smart_read::TryRead

source ·
pub trait TryRead {
    type Output;

    // Required method
    fn try_read_line(
        &self,
        read_data: TryReadArgs<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: TryReadArgs<Self::Output> ) -> BoxResult<Self::Output>

Implementations on Foreign Types§

source§

impl TryRead for ()

§

type Output = String

source§

fn try_read_line( &self, read_args: TryReadArgs<Self::Output> ) -> BoxResult<Self::Output>

source§

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

§

type Output = T

source§

fn try_read_line( &self, read_args: TryReadArgs<Self::Output> ) -> BoxResult<Self::Output>

source§

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

§

type Output = T

source§

fn try_read_line( &self, read_args: TryReadArgs<Self::Output> ) -> BoxResult<Self::Output>

source§

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

§

type Output = T

source§

fn try_read_line( &self, read_args: TryReadArgs<Self::Output> ) -> BoxResult<Self::Output>

source§

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

§

type Output = T

source§

fn try_read_line( &self, read_args: TryReadArgs<Self::Output> ) -> BoxResult<Self::Output>

source§

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

§

type Output = T

source§

fn try_read_line( &self, read_args: TryReadArgs<Self::Output> ) -> BoxResult<Self::Output>

source§

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

§

type Output = T

source§

fn try_read_line( &self, read_args: TryReadArgs<Self::Output> ) -> BoxResult<Self::Output>

source§

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

§

type Output = T

source§

fn try_read_line( &self, read_args: TryReadArgs<Self::Output> ) -> BoxResult<Self::Output>

source§

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

§

type Output = T

source§

fn try_read_line( &self, read_args: TryReadArgs<Self::Output> ) -> BoxResult<Self::Output>

source§

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

§

type Output = T

source§

fn try_read_line( &self, read_args: TryReadArgs<Self::Output> ) -> BoxResult<Self::Output>

source§

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

§

type Output = T

source§

fn try_read_line( &self, read_args: TryReadArgs<Self::Output> ) -> BoxResult<Self::Output>

Implementors§