[][src]Trait oso::FromPolar

pub trait FromPolar: Sized {
    fn from_polar(term: &Term, host: &mut Host) -> Result<Self>;

    fn from_polar_list(terms: &[Term], host: &mut Host) -> Result<Self> { ... }
}

Convert Polar types to Rust types.

This trait is automatically implemented for any type that implements the PolarClass trait, which should be preferred.

This is also implemented automatically using the #[derive(PolarClass)] macro.

Required methods

fn from_polar(term: &Term, host: &mut Host) -> Result<Self>

Loading content...

Provided methods

fn from_polar_list(terms: &[Term], host: &mut Host) -> Result<Self>

Loading content...

Implementations on Foreign Types

impl FromPolar for bool[src]

impl FromPolar for u8[src]

impl FromPolar for i8[src]

impl FromPolar for u16[src]

impl FromPolar for i16[src]

impl FromPolar for u32[src]

impl FromPolar for i32[src]

impl FromPolar for i64[src]

impl FromPolar for f64[src]

impl FromPolar for String[src]

impl<T: FromPolar> FromPolar for Vec<T>[src]

impl<T: FromPolar> FromPolar for HashMap<String, T>[src]

impl FromPolar for ()[src]

impl<A> FromPolar for (A,) where
    A: FromPolar
[src]

impl<A, B> FromPolar for (A, B) where
    A: FromPolar,
    B: FromPolar
[src]

impl<A, B, C> FromPolar for (A, B, C) where
    A: FromPolar,
    B: FromPolar,
    C: FromPolar
[src]

impl<A, B, C, D> FromPolar for (A, B, C, D) where
    A: FromPolar,
    B: FromPolar,
    C: FromPolar,
    D: FromPolar
[src]

impl<A, B, C, D, E> FromPolar for (A, B, C, D, E) where
    A: FromPolar,
    B: FromPolar,
    C: FromPolar,
    D: FromPolar,
    E: FromPolar
[src]

impl<A, B, C, D, E, G> FromPolar for (A, B, C, D, E, G) where
    A: FromPolar,
    B: FromPolar,
    C: FromPolar,
    D: FromPolar,
    E: FromPolar,
    G: FromPolar
[src]

impl<A, B, C, D, E, G, H> FromPolar for (A, B, C, D, E, G, H) where
    A: FromPolar,
    B: FromPolar,
    C: FromPolar,
    D: FromPolar,
    E: FromPolar,
    G: FromPolar,
    H: FromPolar
[src]

impl<A, B, C, D, E, G, H, I> FromPolar for (A, B, C, D, E, G, H, I) where
    A: FromPolar,
    B: FromPolar,
    C: FromPolar,
    D: FromPolar,
    E: FromPolar,
    G: FromPolar,
    H: FromPolar,
    I: FromPolar
[src]

impl<A, B, C, D, E, G, H, I, J> FromPolar for (A, B, C, D, E, G, H, I, J) where
    A: FromPolar,
    B: FromPolar,
    C: FromPolar,
    D: FromPolar,
    E: FromPolar,
    G: FromPolar,
    H: FromPolar,
    I: FromPolar,
    J: FromPolar
[src]

impl<A, B, C, D, E, G, H, I, J, K> FromPolar for (A, B, C, D, E, G, H, I, J, K) where
    A: FromPolar,
    B: FromPolar,
    C: FromPolar,
    D: FromPolar,
    E: FromPolar,
    G: FromPolar,
    H: FromPolar,
    I: FromPolar,
    J: FromPolar,
    K: FromPolar
[src]

impl<A, B, C, D, E, G, H, I, J, K, L> FromPolar for (A, B, C, D, E, G, H, I, J, K, L) where
    A: FromPolar,
    B: FromPolar,
    C: FromPolar,
    D: FromPolar,
    E: FromPolar,
    G: FromPolar,
    H: FromPolar,
    I: FromPolar,
    J: FromPolar,
    K: FromPolar,
    L: FromPolar
[src]

impl<A, B, C, D, E, G, H, I, J, K, L, M> FromPolar for (A, B, C, D, E, G, H, I, J, K, L, M) where
    A: FromPolar,
    B: FromPolar,
    C: FromPolar,
    D: FromPolar,
    E: FromPolar,
    G: FromPolar,
    H: FromPolar,
    I: FromPolar,
    J: FromPolar,
    K: FromPolar,
    L: FromPolar,
    M: FromPolar
[src]

impl<A, B, C, D, E, G, H, I, J, K, L, M, N> FromPolar for (A, B, C, D, E, G, H, I, J, K, L, M, N) where
    A: FromPolar,
    B: FromPolar,
    C: FromPolar,
    D: FromPolar,
    E: FromPolar,
    G: FromPolar,
    H: FromPolar,
    I: FromPolar,
    J: FromPolar,
    K: FromPolar,
    L: FromPolar,
    M: FromPolar,
    N: FromPolar
[src]

impl<A, B, C, D, E, G, H, I, J, K, L, M, N, O> FromPolar for (A, B, C, D, E, G, H, I, J, K, L, M, N, O) where
    A: FromPolar,
    B: FromPolar,
    C: FromPolar,
    D: FromPolar,
    E: FromPolar,
    G: FromPolar,
    H: FromPolar,
    I: FromPolar,
    J: FromPolar,
    K: FromPolar,
    L: FromPolar,
    M: FromPolar,
    N: FromPolar,
    O: FromPolar
[src]

impl<A, B, C, D, E, G, H, I, J, K, L, M, N, O, P> FromPolar for (A, B, C, D, E, G, H, I, J, K, L, M, N, O, P) where
    A: FromPolar,
    B: FromPolar,
    C: FromPolar,
    D: FromPolar,
    E: FromPolar,
    G: FromPolar,
    H: FromPolar,
    I: FromPolar,
    J: FromPolar,
    K: FromPolar,
    L: FromPolar,
    M: FromPolar,
    N: FromPolar,
    O: FromPolar,
    P: FromPolar
[src]

impl<A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q> FromPolar for (A, B, C, D, E, G, H, I, J, K, L, M, N, O, P, Q) where
    A: FromPolar,
    B: FromPolar,
    C: FromPolar,
    D: FromPolar,
    E: FromPolar,
    G: FromPolar,
    H: FromPolar,
    I: FromPolar,
    J: FromPolar,
    K: FromPolar,
    L: FromPolar,
    M: FromPolar,
    N: FromPolar,
    O: FromPolar,
    P: FromPolar,
    Q: FromPolar
[src]

Loading content...

Implementors

impl FromPolar for Value[src]

impl<C: 'static + Clone + PolarClass> FromPolar for C[src]

Loading content...