Trait nekolib::utils::scanner::Scan

source ·
pub trait Scan: Sized {
    type Err: Error;

    // Required method
    fn scan(buf: &str) -> (Result<Self, Self::Err>, usize);
}

Required Associated Types§

Required Methods§

source

fn scan(buf: &str) -> (Result<Self, Self::Err>, usize)

Implementations on Foreign Types§

source§

impl<A, B, C, D, E, F, G> Scan for (A, B, C, D, E, F, G)where A: Scan, B: Scan, C: Scan, D: Scan, E: Scan, F: Scan, G: Scan,

source§

impl Scan for u8

§

type Err = ParseIntError

source§

fn scan(buf: &str) -> (Result<Self, Self::Err>, usize)

source§

impl<A, B, C, D, E, F, G, H, I> Scan for (A, B, C, D, E, F, G, H, I)where A: Scan, B: Scan, C: Scan, D: Scan, E: Scan, F: Scan, G: Scan, H: Scan, I: Scan,

source§

impl<A, B, C, D, E, F> Scan for (A, B, C, D, E, F)where A: Scan, B: Scan, C: Scan, D: Scan, E: Scan, F: Scan,

source§

impl Scan for i32

§

type Err = ParseIntError

source§

fn scan(buf: &str) -> (Result<Self, Self::Err>, usize)

source§

impl<A, B, C, D, E, F, G, H> Scan for (A, B, C, D, E, F, G, H)where A: Scan, B: Scan, C: Scan, D: Scan, E: Scan, F: Scan, G: Scan, H: Scan,

source§

impl<A, B, C, D, E> Scan for (A, B, C, D, E)where A: Scan, B: Scan, C: Scan, D: Scan, E: Scan,

source§

impl Scan for u128

§

type Err = ParseIntError

source§

fn scan(buf: &str) -> (Result<Self, Self::Err>, usize)

source§

impl<A, B, C, D, E, F, G, H, I, J, K> Scan for (A, B, C, D, E, F, G, H, I, J, K)where A: Scan, B: Scan, C: Scan, D: Scan, E: Scan, F: Scan, G: Scan, H: Scan, I: Scan, J: Scan, K: Scan,

source§

impl Scan for usize

§

type Err = ParseIntError

source§

fn scan(buf: &str) -> (Result<Self, Self::Err>, usize)

source§

impl Scan for i128

§

type Err = ParseIntError

source§

fn scan(buf: &str) -> (Result<Self, Self::Err>, usize)

source§

impl<A, B, C, D, E, F, G, H, I, J, K, L> Scan for (A, B, C, D, E, F, G, H, I, J, K, L)where A: Scan, B: Scan, C: Scan, D: Scan, E: Scan, F: Scan, G: Scan, H: Scan, I: Scan, J: Scan, K: Scan, L: Scan,

source§

impl<A, B, C, D, E, F, G, H, I, J> Scan for (A, B, C, D, E, F, G, H, I, J)where A: Scan, B: Scan, C: Scan, D: Scan, E: Scan, F: Scan, G: Scan, H: Scan, I: Scan, J: Scan,

source§

impl Scan for char

§

type Err = ParseCharError

source§

fn scan(buf: &str) -> (Result<Self, Self::Err>, usize)

source§

impl Scan for u32

§

type Err = ParseIntError

source§

fn scan(buf: &str) -> (Result<Self, Self::Err>, usize)

source§

impl Scan for f64

§

type Err = ParseFloatError

source§

fn scan(buf: &str) -> (Result<Self, Self::Err>, usize)

source§

impl Scan for i16

§

type Err = ParseIntError

source§

fn scan(buf: &str) -> (Result<Self, Self::Err>, usize)

source§

impl Scan for u64

§

type Err = ParseIntError

source§

fn scan(buf: &str) -> (Result<Self, Self::Err>, usize)

source§

impl<A, B, C, D> Scan for (A, B, C, D)where A: Scan, B: Scan, C: Scan, D: Scan,

source§

impl Scan for u16

§

type Err = ParseIntError

source§

fn scan(buf: &str) -> (Result<Self, Self::Err>, usize)

source§

impl Scan for isize

§

type Err = ParseIntError

source§

fn scan(buf: &str) -> (Result<Self, Self::Err>, usize)

source§

impl Scan for f32

§

type Err = ParseFloatError

source§

fn scan(buf: &str) -> (Result<Self, Self::Err>, usize)

source§

impl<A, B> Scan for (A, B)where A: Scan, B: Scan,

source§

impl Scan for i64

§

type Err = ParseIntError

source§

fn scan(buf: &str) -> (Result<Self, Self::Err>, usize)

source§

impl Scan for i8

§

type Err = ParseIntError

source§

fn scan(buf: &str) -> (Result<Self, Self::Err>, usize)

source§

impl<A, B, C> Scan for (A, B, C)where A: Scan, B: Scan, C: Scan,

source§

impl Scan for String

§

type Err = Infallible

source§

fn scan(buf: &str) -> (Result<Self, Self::Err>, usize)

Implementors§