Skip to main content

FromGp

Trait FromGp 

Source
pub trait FromGp: Sized {
    // Required methods
    fn try_from<'s>(input: &'s str) -> Result<(Self, &'s str), ParseError<'s>>;
    fn name() -> &'static str;
}

Required Methods§

Source

fn try_from<'s>(input: &'s str) -> Result<(Self, &'s str), ParseError<'s>>

Source

fn name() -> &'static str

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl FromGp for BigInt

Source§

fn try_from<'s>(input: &'s str) -> Result<(Self, &'s str), ParseError<'s>>

Source§

fn name() -> &'static str

Source§

impl FromGp for String

Source§

fn try_from<'s>(input: &'s str) -> Result<(Self, &'s str), ParseError<'s>>

Source§

fn name() -> &'static str

Source§

impl FromGp for i8

Source§

fn try_from<'s>(input: &'s str) -> Result<(Self, &'s str), ParseError<'s>>

Source§

fn name() -> &'static str

Source§

impl FromGp for i16

Source§

fn try_from<'s>(input: &'s str) -> Result<(Self, &'s str), ParseError<'s>>

Source§

fn name() -> &'static str

Source§

impl FromGp for i32

Source§

fn try_from<'s>(input: &'s str) -> Result<(Self, &'s str), ParseError<'s>>

Source§

fn name() -> &'static str

Source§

impl FromGp for i64

Source§

fn try_from<'s>(input: &'s str) -> Result<(Self, &'s str), ParseError<'s>>

Source§

fn name() -> &'static str

Source§

impl FromGp for i128

Source§

fn try_from<'s>(input: &'s str) -> Result<(Self, &'s str), ParseError<'s>>

Source§

fn name() -> &'static str

Source§

impl FromGp for isize

Source§

fn try_from<'s>(input: &'s str) -> Result<(Self, &'s str), ParseError<'s>>

Source§

fn name() -> &'static str

Source§

impl FromGp for u8

Source§

fn try_from<'s>(input: &'s str) -> Result<(Self, &'s str), ParseError<'s>>

Source§

fn name() -> &'static str

Source§

impl FromGp for u16

Source§

fn try_from<'s>(input: &'s str) -> Result<(Self, &'s str), ParseError<'s>>

Source§

fn name() -> &'static str

Source§

impl FromGp for u32

Source§

fn try_from<'s>(input: &'s str) -> Result<(Self, &'s str), ParseError<'s>>

Source§

fn name() -> &'static str

Source§

impl FromGp for u64

Source§

fn try_from<'s>(input: &'s str) -> Result<(Self, &'s str), ParseError<'s>>

Source§

fn name() -> &'static str

Source§

impl FromGp for u128

Source§

fn try_from<'s>(input: &'s str) -> Result<(Self, &'s str), ParseError<'s>>

Source§

fn name() -> &'static str

Source§

impl FromGp for usize

Source§

fn try_from<'s>(input: &'s str) -> Result<(Self, &'s str), ParseError<'s>>

Source§

fn name() -> &'static str

Source§

impl<T, U, V> FromGp for (T, U, V)
where T: FromGp, U: FromGp, V: FromGp,

Source§

fn try_from<'s>(input: &'s str) -> Result<(Self, &'s str), ParseError<'s>>

Source§

fn name() -> &'static str

Source§

impl<T, U> FromGp for (T, U)
where T: FromGp, U: FromGp,

Source§

fn try_from<'s>(input: &'s str) -> Result<(Self, &'s str), ParseError<'s>>

Source§

fn name() -> &'static str

Source§

impl<T: FromGp> FromGp for Vec<T>

Source§

fn try_from<'s>(input: &'s str) -> Result<(Self, &'s str), ParseError<'s>>

Source§

fn name() -> &'static str

Source§

impl<T> FromGp for Ratio<T>
where T: FromGp + Clone + Integer,

Source§

fn try_from<'s>(input: &'s str) -> Result<(Self, &'s str), ParseError<'s>>

Source§

fn name() -> &'static str

Implementors§