[][src]Trait glsp::IntoResult

pub trait IntoResult { }

A type which can be returned from an RFn.

A blanket implementation is provided for any type which implements ToVal, and also for any GResult<T> where T: ToVal.

It's not possible to implement this trait for your own types. Implement ToVal instead, or define your type using rdata! or lib!.

Implementations on Foreign Types

impl<T> IntoResult for Result<T, GError> where
    T: IntoResult

Loading content...


impl<T> IntoResult for T where
    T: ToVal

Loading content...